# Math Help - help me to plot this equation in Matlab....

1. ## help me to plot this equation in Matlab....

this is a differential equation...and taking the inverse laplace transform it became a step function....

this is the function...

y(t) = 1/2[(sin2(t-1)u(t-1)/2)+cos(2t)]

thank you in advance...

2. Originally Posted by thegeniusguy
this is a differential equation...and taking the inverse laplace transform it became a step function....

this is the function...

y(t) = 1/2[(sin2(t-1)u(t-1)/2)+cos(2t)]

thank you in advance...
Your text makes little to no sense, try using English and more brackets. Try:

Code:
> t=0:0.1:10;
> y= (1/2)*[((sin(t-1)).^2/2).*(t>1)+cos(2*t)];
> plot(t,y)                                                                            -->
CB