how to create square matrix ?

조회 수: 3 (최근 30일)
Aniket
Aniket 2013년 3월 20일
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
Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 20일
What is syssc? continuous or discrete system? provide more information about your system.
Aniket
Aniket 2013년 3월 20일
편집: Walter Roberson 2013년 3월 20일
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);

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 20일
eye(1) would be a real square matrix with one row.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by