ERROR FOR EZPLOT?

3 visualizzazioni (ultimi 30 giorni)
Siddhant Das
Siddhant Das il 23 Dic 2020
Commentato: Walter Roberson il 23 Dic 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])
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])

Risposte (1)

Steven Lord
Steven Lord il 23 Dic 2020
The case matters. Change EZPLOT to ezplot in your code.
  2 Commenti
Walter Roberson
Walter Roberson il 23 Dic 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 il 23 Dic 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])

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by