Datatype error nlgreyest parameters
이전 댓글 표시
I would appreciate any help on resolving the error
Error using iddata/nlgreyest
In 'Ident:estimation:infeasibleSimulation', data type supplied is incorrect for parameter {0}.
Error in identifyModel (line 64)
model = nlgreyest(dataObject, model, opt);
I assume parameter {0} means it concerns the first parameter, although matlab typically doesn't use zero indexing. I use the following code to create my parameter struct for idnlgrey, and all values are standard doubles.
function identificationParam = defineParamModel()
a11 = -1;
a22 = -1;
a33 = -1e-1;
a23 = 0;
a32 = 0;
identificationParam(1).Name = 'dynamic matrix';
identificationParam(1).Unit = '';
identificationParam(1).Value = [a11, 0, 0;
0, a22, a23;
0, a32, a33];
identificationParam(1).Minimum = [-inf, 0,0;
0, -inf, -inf;
0, -inf, -inf];
identificationParam(1).Maximum = [0, 0,0;
0, 0, inf;
0, inf, 0];
identificationParam(1).Fixed = [0, 1, 1;
1, 0, 0;
1, 0, 0];
end
Thank you,
mlut
댓글 수: 4
M Lut
2023년 1월 30일
Bernardo Simões Coelho Borges Taveira
2023년 4월 19일
I have encountered the same error message. Any idea on how to fix it?
M Lut
2023년 4월 19일
Brendan McGovern
2023년 9월 27일
I cant figure out the fix it keeps bring me to line 59 and im getting the same error. I read through the documentation and the file arguement is expected to be in a cell array, but what did you do to actually fix it?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Nonlinear Grey-Box Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!