Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

excluding C matrix from state space block in controller design with simulink

11 views
Skip to first unread message

mer ve

unread,
Nov 29, 2010, 10:52:03 AM11/29/10
to
Hi all!
In simulink there is a state space block which has equations of x'=Ax+Bu and y=Cx.
I want to design a feedback matrix using ackerman formula but feedback control matrix should have input from states which is before C matrix.How can i exclude C matrix?
Regards

Arkadiy Turevskiy

unread,
Nov 29, 2010, 11:16:04 AM11/29/10
to
"mer ve" <merv...@hotmail.com> wrote in message <id0i73$7a2$1...@fred.mathworks.com>...

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

mer ve

unread,
Nov 30, 2010, 6:30:24 AM11/30/10
to
Hi
Both ways are good but i tried 1st way.
I have a SISO system.
So both C vector(to calculate output) and (feedback) controller vector should be represented in simulink as a block but i couldnt find it:( Plz let me know how i can represent a vector(1x3) whose input is my states(3x1) and output is the system output(1x1).
Regards

mer ve

unread,
Nov 30, 2010, 6:32:04 AM11/30/10
to

Arkadiy Turevskiy

unread,
Nov 30, 2010, 11:33:06 AM11/30/10
to
If you go with my first suggestion, you need 2 State-Space blocks from Continuous sublibrary in Simulink.

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>...

mer ve

unread,
Dec 6, 2010, 12:59:06 PM12/6/10
to
hi
I have one more question.
I am using simulink model which includes a variable which was defined in a m file.I want user to change it from gui which was created with control desk.control desk communicates with simulink but doesnt change a variable from mfile.how can i overcome??
Thanks

Avinakar

unread,
Feb 24, 2011, 1:42:05 PM2/24/11
to
"mer ve" <merv...@hotmail.com> wrote in message <idj89a$4bj$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.

0 new messages