i have a problem in my program this is code load sys-mbc-22.mat double A ; double B ; double C ; double D ; double Z ; char r ; Z = zeros([30 1]) r = DescStates A = MBC_AvgA B = B2 C = C2 D = D2 %model = 'linopenloopsyss';
이전 댓글 표시
i have a problem in my program this is code
load sys-mbc-22.mat
double A ;
double B ;
double C ;
double D ;
double Z ;
char r ;
Z = zeros([30 1])
r = DescStates
A = MBC_AvgA
B = B2
C = C2
D = D2
TMax = 100;
sim('linOpenLoopsyss',[0,TMax]);
when execute it gives
Error using matrices (line 25)
Invalid setting in 'linopenloopsyss/State-Space' for parameter 'X0'.
this image of simulink block parameter
what i can do ???
채택된 답변
추가 답변 (1개)
DJIBRINE Abakar
2018년 7월 16일
편집: Walter Roberson
2018년 7월 17일
0 개 추천
Hi
Sir
please to answer this question
A valid state attribute should be either a character vector, a cell array or a valid MATLAB structure
댓글 수: 3
Walter Roberson
2018년 7월 17일
We need more context for this. Which toolbox are you using? What have you configured for that block?
Drishya Dinesh
2021년 4월 19일
used Tf block
Walter Roberson
2021년 4월 19일
편집: Walter Roberson
2021년 4월 19일
you need to pass in a quoted string for the state name, such as 'position' including the '' characters
카테고리
도움말 센터 및 File Exchange에서 String에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!