Please, do not use symbolic variables for the time array.
t=0:0.01:10;
H=tf(4,[5 5]);
vi=(10.*(sin(10*t))).*(t<=18);
v0=lsim(H,vi,t);
plot(t,v0);xlabel('t');ylabel('v0(t)')
If this helps, consider accepting the answer as a sign of gratitude.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!