Scilab 6.0.0
- Справка Scilab
- Matlab to Scilab Conversion Tips
- Matlab-Scilab equivalents
- R
- rand (Matlab function)
- randn (Matlab function)
- randperm (Matlab function)
- rcond (Matlab function)
- real (Matlab function)
- realmax (Matlab function)
- realmin (Matlab function)
- rem (Matlab function)
- repmat (Matlab function)
- reshape (Matlab function)
- return (Matlab function)
- round (Matlab function)
Справка Scilab >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > R > randperm (Matlab function)
randperm (Matlab function)
Uniformly distributed random numbers and arrays
Matlab/Scilab equivalent
Matlab | Scilab |
randperm(n) ; randperm(n ,k) |
Description
Matlab's randperm(n) is equivalent to grand(1, "prm", (1:n)')' in Scilab.
randperm(n, k) corresponds to the k first elements of the above command, so the equivalent is stored in v(1:k), if v = grand(1, "prm", (1:n)')'.
Comments
Add a comment:
Please login to comment this page.