Plotting a model in matlab

  • MATLAB
  • Thread starter solas99
  • Start date
  • #1
69
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.
 

Answers and Replies

  • #2
Student100
Education Advisor
Gold Member
1,649
416
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:

Related Threads on Plotting a model in matlab

  • Last Post
Replies
1
Views
9K
  • Last Post
Replies
8
Views
5K
  • Last Post
Replies
2
Views
4K
Replies
0
Views
8K
  • Last Post
Replies
1
Views
7K
  • Last Post
Replies
7
Views
3K
Replies
1
Views
935
  • Last Post
Replies
2
Views
33K
Replies
4
Views
6K
Replies
2
Views
9K
Top