MATLAB ezplot Error: Get Help Here!

In summary, the conversation discusses a problem with using the ezplot function in Matlab to plot a simple code. The error is caused by having too many symbolic objects to plot. The person asks for assistance and thanks in advance.
  • #1
Pepealej
20
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
  • #2
---solved---
 

Related to MATLAB ezplot Error: Get Help Here!

What is MATLAB ezplot?

MATLAB ezplot is a function in MATLAB that allows for the easy plotting of mathematical expressions or functions.

Why am I getting an error when using MATLAB ezplot?

There could be several reasons for this error, such as incorrect syntax or invalid input. Double-check your code and make sure you are using the correct format for the function.

How can I get help with my MATLAB ezplot error?

You can get help by using the "help" function in MATLAB or by searching online for solutions. You can also post your error on MATLAB forums or ask a fellow scientist or programmer for assistance.

Can I customize the appearance of my plot in MATLAB ezplot?

Yes, you can customize the plot by using various formatting options such as changing the color, line style, and adding titles and labels.

Is there a limit to the number of functions I can plot using MATLAB ezplot?

No, there is no limit to the number of functions you can plot. However, it is recommended to keep the number of functions to a manageable amount for better visualization and analysis.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
480
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
3K
Back
Top