A couple of ways:
1) add another state-space block to calculate x. To do that set C to unity diagonal and D to zero for that block., i.e.,
>> c=diag(linspace(1,1,length(a)));
>>d=zeros(length(a),1);
Now you have two state-space blocks - one that calculates x that you can use to calculate u with ackerman, another one that calculates your y.
2) Use one state-space block, but modify C and D matrices to caclulate
new _y = [ old _y x];
Then you can simply select block outputs that correspond to x.
HTH.
Arkadiy
The first block should be parameterized with your a,b,c,d
The second block (the one that will give you x to use for control signal calculation), should use a,b,c1,d1, where
c1=(1 0 0; 0 1 0; 0 0 1);
d1=0;
(this assumes you have 3 states and single input, single output, as you mentioned)
"mer ve" <merv...@hotmail.com> wrote in message <id2nbk$2h1$1...@fred.mathworks.com>...
Hi,
As you said ControlDesk is GUI which acts a testing and diagnosis tool for real time systems only for parameters in simulink.