Datatype error nlgreyest parameters
Show older comments
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 Comments
M Lut
on 30 Jan 2023
Bernardo Simões Coelho Borges Taveira
on 19 Apr 2023
I have encountered the same error message. Any idea on how to fix it?
M Lut
on 19 Apr 2023
Brendan McGovern
on 27 Sep 2023
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?
Answers (0)
Categories
Find more on Nonlinear Grey-Box Models 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!