error: "Attempt to execute SCRIPT "normrnd" as a function:"
1 view (last 30 days)
Show older comments
I have this eror when I run simple command
>> x = normrnd(0,1,500,1);
note: my laptop MAcOS execute this command well. I removed and installed fresh 2017b version. Set path all good.
0 Comments
Answers (2)
Steven Lord
on 24 Feb 2020
Let's make sure you haven't created / downloaded a normrnd.m that's taking precedence over the version of that function in Statistics and Machine Learning Toolbox. What does this command display?
which -all normrnd
If it shows something that's not in a MathWorks toolbox, consider renaming or removing the non-MathWorks normrnd.m.
See Also
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!