l=2.5;w=60;e=2*10^8;i=2000*10^-8;
r1=w*1;
x=sym('x');
sfx=(w*1)-w*x;
subplot(2,2,1)
EZPLOT(sfx,[0,2.5])
subplot(2,2,2)
bmx=(w*1*1/2)-(w*x*x/2);
EZPLOT(bmx,[0,2.5])
subplot(2,2,3)
theta=(((-w*(1-x)^3)/6)+((w*1^3)/6))/e*i;
EZPLOT(theta,[0,2.5])
subplot(2,2,4)
y=-(((w*(1-x)^4/24)+((w*x*1^3)/6)-((w*1^4)/24)))/e*i;
EZPLOT(y,[0,2.5])
here's what error i am getting :
Cannot find an exact (case-sensitive) match for 'EZPLOT'
The closest match is: ezplot in C:\Program Files\Polyspace\R2019b\toolbox\matlab\specgraph\ezplot.m
Error in sfd (line 6)
EZPLOT(sfx,[0,2.5])

답변 (1개)

Steven Lord
Steven Lord 2020년 12월 23일

0 개 추천

The case matters. Change EZPLOT to ezplot in your code.

댓글 수: 2

Walter Roberson
Walter Roberson 2020년 12월 23일
In very very old MATLAB, case of functions was not sensitive, and it was common for even Mathworks provided documentation to use upper-case function names for emphasis. You can still find places where error messages or help documentation uses the upper-case version of the name.
Walter Roberson
Walter Roberson 2020년 12월 23일
l=2.5;w=60;e=2*10^8;i=2000*10^-8;
r1=w*1;
x=sym('x');
sfx=(w*1)-w*x;
subplot(2,2,1)
ezplot(sfx,[0,2.5])
subplot(2,2,2)
bmx=(w*1*1/2)-(w*x*x/2);
ezplot(bmx,[0,2.5])
subplot(2,2,3)
theta=(((-w*(1-x)^3)/6)+((w*1^3)/6))/e*i;
ezplot(theta,[0,2.5])
subplot(2,2,4)
y=-(((w*(1-x)^4/24)+((w*x*1^3)/6)-((w*1^4)/24)))/e*i;
ezplot(y,[0,2.5])

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

카테고리

태그

질문:

2020년 12월 23일

댓글:

2020년 12월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by