Optinoal Arguments for idnlgrey
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi guys,
I'm using the grey-box estimation methods of the System Identification Toolbox to estimate the parameters of lateral motion of an aircraft. My model has several parameters to estimate and also a few parameters that are known but cannot be hard-coded in the model function. So the header of my model function looks like this:
function [ dx, y ] = AC_lat_model_nl(t, x, u, param1, param2, optional_args)
Before I can start the estimation process I have to use idnlgrey to get the grey-box object. So far my function call looks like this:
AC_lat_nlgrey = idnlgrey('AC_lat_model_nl', Order, parameters, InitialStates, 0);
The question is how do I hand over those 'optional_args'? For the linear version idgrey I can hand them over after the sample time but this doesn't seem to work for the nonlinear version idnlgrey.
Thanks for your help!
Kevin
1 comentario
Shaoyi Zhou
el 9 de En. de 2018
Hello, have you solved your problem? For me I don't know exactly what does 'optional_args' mean, even in linear case. Dose it mean the initial values of state vector?
Respuestas (2)
Walter Roberson
el 9 de En. de 2018
Let optional_args be a cell array, and use
AC_lat_nlgrey = idnlgrey('AC_lat_model_nl', Order, parameters, InitialStates, 0, optional_args{:});
0 comentarios
Josiah Wai
el 10 de Feb. de 2021
In case anyone else has this issue, I had to use the 'FileArgument' property of idnlgrey. Let optional_args be a cell array
sys = idnlgrey(FileName,Order,Parameters,InitialStates,Ts, 'FileArgument', optional_args)
0 comentarios
Ver también
Categorías
Más información sobre Grey-Box Model Estimation en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!