Antonio Araujo wrote:
I included a callback routine to plot the results. To make things simple, I used the easiest way to run them. With the Simulink model opened, go to Files -> Model Properties -> Callbacks tab and click on StopFcn*. There you'll find a simple way to plot your results as soon as the simulation stops. You can include your own code if you want. The Scope in the model is a struct with time named "y" that is availabe over the workspace after the simulation runs.
>>
>>One more thing: Note that the input and output variables are deviations from the given steady state.
>>
>>Cheers,
>>Antonio.
>>
>>