Optinoal Arguments for idnlgrey

2 views (last 30 days)
Kevin
Kevin on 4 Jan 2015
Answered: Josiah Wai on 10 Feb 2021
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 Comment
Shaoyi Zhou
Shaoyi Zhou on 9 Jan 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?

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 9 Jan 2018
Let optional_args be a cell array, and use
AC_lat_nlgrey = idnlgrey('AC_lat_model_nl', Order, parameters, InitialStates, 0, optional_args{:});

Josiah Wai
Josiah Wai on 10 Feb 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)

Categories

Find more on Grey-Box Model Estimation 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!