Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB ezplot error

  1. Jan 26, 2013 #1
    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 :)
     
  2. jcsd
  3. Jan 27, 2013 #2
    ---solved---
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: MATLAB ezplot error
  1. Matlab Error (Replies: 1)

  2. Error code in Matlab (Replies: 3)

Loading...