how to create square matrix ?

3 Ansichten (letzte 30 Tage)
Aniket
Aniket am 20 Mär. 2013
i want to create square matrix but it is with at most 1 rows.
Actually i am using Kalman filter command to create estimator but it is giving me some error..
the command is
QN=eye(10);
L= kalman(syssc,QN,QV)
the error is coming for QW
In the "kalman(SYS,QN,RN,NN,...)" command, QN must be a real square matrix with at most 1 rows.
how should i do this ?
  2 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 20 Mär. 2013
What is syssc? continuous or discrete system? provide more information about your system.
Aniket
Aniket am 20 Mär. 2013
Bearbeitet: Walter Roberson am 20 Mär. 2013
syssc is continuous system, like this
load sec_sumsin_ABCDmatrix.mat % data As,Bs,Cs,Ds
syss=ss(As,Bs,Cs,Ds,0.001);
syssc=d2c(syss,'tustin');
[Asc,Bsc,Csc,Dsc]=ssdata(syssc);

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 20 Mär. 2013
eye(1) would be a real square matrix with one row.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by