Produce a random real number, MATLAB Programming

Produce a random real number:

To produce a random real number in the range from low to high, at first create the variables low and high. And then, use the expression rand*(high-low) low. For illustration, the sequence

>> low = 3;

>> high = 5;

>> rand*(high-low)+low

would produce a random real number in the range from 3 to 5.

 

 

Posted Date: 10/18/2012 4:05:01 AM | Location : United States







Related Discussions:- Produce a random real number, Assignment Help, Ask Question on Produce a random real number, Get Answer, Expert's Help, Produce a random real number Discussions

Write discussion on Produce a random real number
Your posts are moderated
Related Questions
I have couple questions in MATLAB I need help in

Call to length function: The call to length function consists of the name of the function, followed by an argument in the parentheses. This function takes the argument, and re


#create a matlab GUI for designing common emitter amplifier which produces AC load lines based on the component values

How do I compute and plot a temperature profile along the x axis from -6 to 6 given the equation for steady state heat conduction and boundary conditions

Matrices of random numbers: The Matrices of random numbers can be generated using the rand and randint functions. The first two arguments in the randint function identify the

String Manipulation: The string in MATLAB software consists of any number of characters and is contained in the single quotes. Actually, strings are considered as vectors in w

how to model a diode in matlab given data

i need matlab code on 2 dimensional analysis of temperature distribution in steel using finite element method

Function char: The function char does the opposite; it converts from any number type to the type char: >> char(numequiv) ans = a As the letters of the alphabet are