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]