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
time t array can be varied and again a new c=plot can be achieved
No comments:
Post a Comment