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

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.

답변 (2개)

Steven Lord
Steven Lord 2020년 2월 24일
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

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
I rename my file and it is good now. Thanks

댓글을 달려면 로그인하십시오.

Seahawks
Seahawks 2020년 2월 25일

0 개 추천

>> which -all normrnd
C:\Users\user1\Documents\MATLAB\normrnd.m
C:\Program Files\MATLAB\R2017\toolbox\stats\stats\normrnd.m % Shadowed

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2020년 2월 24일

댓글:

2020년 2월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by