Undefined function or variable 'ran' in matlab R2018a

3 次查看(过去 30 天)
Hello,
I am using matlab R2018a in Windows10.
I want to use the random function ran, but when I run it, that following message is shown to me : Undefined function or variable 'ran'.
How resolve that problem ?

回答(1 个)

Ameer Hamza
Ameer Hamza 2020-11-20
The function name is rand(): https://www.mathworks.com/help/matlab/ref/rand.html, not ran().

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by