Working with plots - Matlab

Thread Starter

Judas543

Joined Jan 26, 2010
60
Gen info: * Use basic structures like hist, plot, sort, median, mean, rand, loops and conditional statements to accomplish your goal.



 

shteii01

Joined Feb 19, 2010
4,644
t=0:0.01:4;
p1=20+10*cos(2*pi*t);
p2=exp(t); (or whatever Matlab use for exponential function)
plot(t, p1, '--', t, p2, '.');
xlabel('time');
ylabel('money');


I think I got all of it, I do not have Matlab at home so I can not check it. You might want to play with it a little to make sure it works exactly right.
 
Top