Monday, May 24, 2010

How to plot function in matlab or maple for example {(F/M)/(k-c)^2+ω^2}*{exp(-kt) – exp(-ct)*[cosωt-{(k-c)/(ω)

in above f is force and constant and m is mass and k,c is constant.just tell me how to plot this function.

How to plot function in matlab or maple for example {(F/M)/(k-c)^2+ω^2}*{exp(-kt) – exp(-ct)*[cosωt-{(k-c)/(ω)
t = t_start:h:t_end;


y = {(F/M)/(k-c)^2+ω^2}*{exp(-k*.t) – exp(-c*t)*[cosω*.t-{(k-c)/(ω) ;


plot(t,y);





(t_start, t_end) is the interval of time on which you want to plot the function


h is the time step eg. h= 1 second or h = 0.1 second


No comments:

Post a Comment