help-octave
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Octave equivalent of Matlab's rand??
From
:
Julien Martin
Subject
:
Octave equivalent of Matlab's rand??
Date
:
Fri, 13 Nov 2009 17:46:09 +0100
Hello,
1. I would like to know what is the Octave equivalent of Matlab's "
rand
" keyword (look at line 2 and note that there are no parentheses).
Here is my program:
function X=GenereVariable(p1, p2, Delta1, Delta2)
U = rand;
X=Delta1 * (U<=p1) - Delta2 * (p1<U) * (p1+p2 >=U);
end
2. Is there a website that references all Octave/Matlab incompatibilities/differences? If so can anyone please direct me to it?
Thanks in advance,
Julien.
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
Octave equivalent of Matlab's rand??
,
Julien Martin
<=
Re: Octave equivalent of Matlab's rand??
,
Søren Hauberg
,
2009/11/13
Octave equivalent of Matlab's rand??
,
John W. Eaton
,
2009/11/13
Re: Octave equivalent of Matlab's rand??
,
Julien Martin
,
2009/11/13
Prev by Date:
Re: octave and delay ode's
Next by Date:
Re: Octave equivalent of Matlab's rand??
Previous by thread:
problem about plotting
Next by thread:
Re: Octave equivalent of Matlab's rand??
Index(es):
Date
Thread