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';
Show older comments
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 ???
Accepted Answer
More Answers (1)
DJIBRINE Abakar
on 16 Jul 2018
Edited: Walter Roberson
on 17 Jul 2018
0 votes
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 Comments
Walter Roberson
on 17 Jul 2018
We need more context for this. Which toolbox are you using? What have you configured for that block?
Drishya Dinesh
on 19 Apr 2021
used Tf block
Walter Roberson
on 19 Apr 2021
Edited: Walter Roberson
on 19 Apr 2021
you need to pass in a quoted string for the state name, such as 'position' including the '' characters
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!