help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generation of random number which needs to be passed to an array


From: Renato S. Yamane
Subject: Re: Generation of random number which needs to be passed to an array
Date: Mon, 15 Jun 2020 22:01:42 +0100

Maybe this helps:
https://www.mathworks.com/matlabcentral/answers/346179-how-can-i-generate-random-numbers-in-a-range-with-decimal-steps

Kind regards,
Renato


On Mon, 15 Jun 2020, 21:33 Ganesh Kini, <ganeshrkini19@gmail.com> wrote:
I have 2 variables named A and B

A  has the range from -0.2 to 2.2 
B has the range from  -3.2 to 0.2

I need all the possible to combinations of A and B in 0.1 steps

for example 

A                        B
0.1                  0.2
-0.1               -0.3 and so on 

How do I randomly generate this?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]