From: Xavier on
Hi,

I'm using the Simulink ARX Block. This block can write to the workspace, a cell array of the estimated models during simulation time which is great. But how can I extract the models and make use of it during simulation time as well? The purpose is for online modeling of a process.

I understand the way to extract from the cell array is do something at the command line like - currentmodel = MyARXBlock{row, column} but this is not "online".

I've been trying to fiddle with using Matlab functions in Simulink but nothing works. I hope to have an IDMODEL block which is a 'snapshot' of the ARX model at X intervals of time.

Appreciate any advice.

Best regards.