Undefined function or variable 'ran' in matlab R2018a

1 Ansicht (letzte 30 Tage)
Rahim Rahim
Rahim Rahim am 20 Nov. 2020
Beantwortet: Ameer Hamza am 20 Nov. 2020
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 ?

Antworten (1)

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

Kategorien

Mehr zu Random Number Generation finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by