Register to reply

Plotting a model in matlab

by solas99
Tags: matlab, model, plotting
Share this thread:
solas99
#1
Nov2-13, 03:37 PM
P: 69
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.
Phys.Org News Partner Mathematics news on Phys.org
Researcher figures out how sharks manage to act like math geniuses
Math journal puts Rauzy fractcal image on the cover
Heat distributions help researchers to understand curved space
Student100
#2
Nov2-13, 04:24 PM
Student100's Avatar
P: 572
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.


Register to reply

Related Discussions
MATLAB: Plotting help Math & Science Software 2
Plotting in MATLAB Math & Science Software 8
Matlab plotting please help Engineering, Comp Sci, & Technology Homework 3
Plotting into a GUI in Matlab Math & Science Software 0
Plotting in matlab Math & Science Software 0