How to obtain State space model response ?

Status
Not open for further replies.

kalaianand

Advanced Member level 4
Joined
Jun 17, 2010
Messages
113
Helped
11
Reputation
22
Reaction score
10
Trophy points
1,298
Activity points
2,025
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?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…