Skip to content

System identification in Matlab

Nima edited this page Jan 15, 2014 · 1 revision

First data needs to be stored in an iddata object:

HSFiddata = iddata(output_filtered, input, samplingTime);

Then the sate space model is estimated using:

sys = ssest(HSFiddata, 2, 'Ts', samplingTime, 'DisturbanceModel', 'none', 'Form', 'canonical');

sys.a and sys.b now contain matrices A and B of the state space model.

Clone this wiki locally