kalaianand
Advanced Member level 4

Hello friends
i need one help on matab M-file programming.
I have a Transfer function, it is easy to converter into state-space(A,B,C,D). For step and impulse signals inbuilt commands are available(like step(u*ss), impulse(u*ss)).
But suppose my input is time varying other than step and impulse, how to obtain the output response.
I am confused which ccommand is to use to get output response !:?
Assume TF = 1/(s+2) , i/p signal =square or sine or any time varing input.
How to write M-file for this case?
i need one help on matab M-file programming.
I have a Transfer function, it is easy to converter into state-space(A,B,C,D). For step and impulse signals inbuilt commands are available(like step(u*ss), impulse(u*ss)).
But suppose my input is time varying other than step and impulse, how to obtain the output response.
I am confused which ccommand is to use to get output response !:?
Assume TF = 1/(s+2) , i/p signal =square or sine or any time varing input.
How to write M-file for this case?