MATLAB ezplot Error: Get Help Here!

  • Context: MATLAB 
  • Thread starter Thread starter Pepealej
  • Start date Start date
  • Tags Tags
    Error Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 5K views
Pepealej
Messages
19
Reaction score
0
Hi. I was writing the simplest code ever in Matlab when I got an error using the ezplot function. I wrote this script:

syms z t;
eq=2600*tan(z)-0.5*9.81*2600^2*(210*cos(z))^(-2)-350;
theta=solve(eq, 'Real', true);
x=210*cos(theta);
y=210*sin(theta)*t-0.5*9.81*t^2;
max=2600*(210*cos(theta))^(-1);
ezplot(x,y,[0 max]); <--- I get problems here.

I get problems in the ezplot. It says:

Error using sym/ezplot>checkNoSyms (line 89)
Too many sym objects to plot.

Error in sym/ezplot (line 68)
checkNoSyms(varargin(2));

Error in script_name (line 9)
ezplot(x,y,[0 max]);

¿Can anyone give me a hand? Thanks :)
 
Physics news on Phys.org