NFlow.plotScopes
Open one figure per scope of an nflow simulation result.
📝Syntax
figures = NFlow.plotScopes(out)
NFlow.plotScopes(out)
📥Input Arguments
Parameter Description
out the structure returned by sim (it must hold a logsout field).
📤Output Arguments
Parameter Description
figures a vector of figure handles, one per plotted scope.
📄Description

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.

💡Examples
Simulate a demo and plot its scopes.
model = [modulepath('nflow_blocks'), '/examples/causal/Second_Order_Responses_Demo.nflow'];
out = sim(model);
NFlow.plotScopes(out);
🔗See Also
simscope
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub