figures = NFlow.plotScopes(out)
NFlow.plotScopes(out)
| Parameter | Description |
|---|---|
| out | the structure returned by sim (it must hold a logsout field). |
| Parameter | Description |
|---|---|
| figures | a vector of figure handles, one per plotted scope. |
NFlow.plotScopes opens one figure per logged signal in out.logsout, drawing every channel of a scope as a line on the same axes. Each figure is titled with the scope identifier.
It is handy as a model stopFcn: set a model's StopFcn to NFlow.plotScopes(out) so the scope traces pop up automatically when the simulation stops, both from sim and from the nflow editor's Run button.
model = [modulepath('nflow_blocks'), '/examples/causal/Second_Order_Responses_Demo.nflow'];
out = sim(model);
NFlow.plotScopes(out);
| Version | Description |
|---|---|
| 1.0.0 | initial version |