MATLAB: How to create an input that is a function of State

control systemsfeedbackstate-space modeltransfer function

I have a mechanical system with:
2 Inputs (i, fs)
4 states(x1, x2, x3, x4)
2 outputs(y1=x1 and y2=x3)
I want the input 'fs' as a function of two states x2 and x4. How can i do that?…
Does this problem require state feedback and how can I use it for a practical problem.
Thanks
Shilp

Best Answer

In your SS block, initialy c=[1 0 0 0;0 0 1 0] and d=[0 0;0 0]
If you want to use x2 and x4, set c=eye(4) and d=zeros(4,2), you will obtain 4 output in this order x1, x2, x3 and x4. use x1 and x3 as output, and do whatever you want with x2 and x4
Related Question