Why i am getting this error 'Attempt to execute SCRIPT spline as a function'?

조회 수: 2 (최근 30일)
Neha Gawande
Neha Gawande 2015년 6월 9일
댓글: Steven Lord 2020년 5월 26일
I am using Matlab 2014a latest version. In older versions eg. 2012b the same code is working without error, while in my new version this error appears.
'Attempt to execute SCRIPT spline as a function' In this if i write spline without arguements, still it does not work.
I want to know what is the difference between new and the older versions regarding this. Please help me to correct this error.

답변 (2개)

Walter Roberson
Walter Roberson 2015년 6월 9일
Use
which spline
and show us the result

Anudeep vurity
Anudeep vurity 2018년 8월 1일
I am facing the same problem
This is the program
x = 0:10; y = sin(x);
xx = 0:.25:10;
pp = spline(x,y,xx);
plot(x,y,'o',xx,yy)
The error I got was 'Attempt to execute SCRIPT spline as a function'
please help!
thank you
  댓글 수: 3
Mbekwa Lemuel Nguh
Mbekwa Lemuel Nguh 2020년 5월 26일
I have rename it in Matlab 2019b but still getting the same error.
Steven Lord
Steven Lord 2020년 5월 26일
Run that command from my comment and show us what it displays.

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

카테고리

Help CenterFile Exchange에서 Splines에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by