Problem: Invalid dimensions specified for output port..

Hello,
This is my model:
Matrices:
C = 0 ; D = 0;
K=
Anyone can help me?I don't know how solve this problem, I'm totally lost. Thanks in advance!

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 28 Jun. 2016
C=0 and D=0 means that your system output will be always equal to 0. Plus the feedback K*u is a 1x5 array when your state space model is expecting a scalar as input. I guess you want to make state feedback, then change the value of the two arrays C and D
C=ones(5)
D=zeros(5);

1 Kommentar

I have to implement a system, but I don’t have values of matrices C and D, only A and B (x= f(x,u)=Ax+BU), so I implemented this model in Simulink environment, the controller I fixed by eig and place functions (Poles = eig(A), Controller = place(A,B,Poles) ). I’m not sure if gain should be (K*u) or different, something is wrong and I don’t know how I can solve it, please help me!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 28 Jun. 2016

Kommentiert:

am 30 Jun. 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by