Working with plots - Matlab

Discussion in 'Programmer's Corner' started by Judas543, Apr 5, 2010.

  1. Judas543

    Thread Starter Member

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



    [​IMG]
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,377
    494
    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.
     
  3. Judas543

    Thread Starter Member

    Jan 26, 2010
    60
    0
    yea i made sure that i got it to work, i also hada to edit the plot using matlab also which i got down thanks
     
Loading...