Showing posts with label inline. Show all posts
Showing posts with label inline. Show all posts

Thursday, 29 August 2013

inline and ezplot functions elaborated

You can simply plot the function by using inline and ezplot command in the following way:





> fcn = inline('exp(-0.2*t).*sin(200*t+pi/20)','t')

fcn =

     Inline function:
     fcn(t) = exp(-0.2*t).*sin(200*t+pi/20)

>> fcn(0:10e-4:0.4);

>> ezplot(fcn)

time t array can be varied and again a new c=plot can be achieved