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])

Antworten (1)

Steven Lord
Steven Lord am 23 Dez. 2020

0 Stimmen

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

2 Kommentare

Walter Roberson
Walter Roberson am 23 Dez. 2020
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 am 23 Dez. 2020
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])

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 23 Dez. 2020

Kommentiert:

am 23 Dez. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by