1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Plotting a model in matlab

  1. Nov 2, 2013 #1
    HI,

    i have a set of data that i want to plot with matlab, using an equation.
    i have all x data points and want to generate y values for each x data point.

    function y =marko(x)


    y= (4.11/1.98)*{(1/4*((1-x/L).^2))-(1/4)-(x/L)};

    x=(218+data points)

    from the command window i have called:

    y=marko(x);

    i keep getting an error in marco (line4)

    can someone help me figure out what i am doing wrong here.
     
  2. jcsd
  3. Nov 2, 2013 #2

    Student100

    User Avatar
    Education Advisor
    Gold Member

    Can you post your complete code?

    I'm unsure what your L is.

    You might also have better luck posting this sort of thing in the homework help, or in the general computer science locations in the future.
     
    Last edited: Nov 2, 2013
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Plotting a model in matlab
  1. Researching plots (Replies: 7)

  2. Plots in Mathematica (Replies: 1)

  3. Matlab @ (Replies: 1)

Loading...