Effacer les filtres
Effacer les filtres

error: "Attempt to execute SCRIPT "normrnd" as a function:"

2 vues (au cours des 30 derniers jours)
Seahawks
Seahawks le 24 Fév 2020
Commenté : Seahawks le 25 Fév 2020
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.

Réponses (2)

Steven Lord
Steven Lord le 24 Fév 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.
  2 commentaires
Seahawks
Seahawks le 25 Fév 2020
I have this return:
>> which -all normrnd
C:\Users\user1\Documents\MATLAB\normrnd.m
C:\Program Files\MATLAB\R2017\toolbox\stats\stats\normrnd.m % Shadowed
Seahawks
Seahawks le 25 Fév 2020
I rename my file and it is good now. Thanks

Connectez-vous pour commenter.


Seahawks
Seahawks le 25 Fév 2020
>> which -all normrnd
C:\Users\user1\Documents\MATLAB\normrnd.m
C:\Program Files\MATLAB\R2017\toolbox\stats\stats\normrnd.m % Shadowed

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by