From: Dhiral on 26 May 2010 13:35 Hello, I have a discrete transfer function for a controller 0.3778 (z-0.8824) C = ------------------------- (z-1) (z-0.9851) with sample time 0.001s. I want state space model (ie. matrices A,B,C,D) such that x(k+1) = A*x(k) + B*u(k) y(k) = C*x(k) + D*u(k) . MATLAB help says its same as for continuous transfer function (tf2ss) but how does it recognize from input arguments (num , den) that my transfer function is discrete one ? by default it assumes it to be a continuous transfer function. Please help me or suggest a diff method to get state space model of a discrete transfer function. Thank you.
|
Pages: 1 Prev: contourf problem (bug?) in Matlab 7.6 Next: Removing NaN in order to take a mean |