add_line
Connect two block ports in an nflow model.
📝Syntax
h = add_line(system, outPort, inPort)
h = add_line(system, outPort, inPort, 'autorouting', 'on')
📥Input Arguments
Parameter Description
args see the syntaxes above.
📤Output Arguments
Parameter Description
varargout see the syntaxes above.
📄Description

add_line connects two block ports in an nflow model.

💡Examples
new_system('demo');
add_block('nflow/source/sine', 'demo/Sine');
add_block('nflow/math/gain', 'demo/Gain', 'gain', 2);
add_line('demo', 'Sine/1', 'Gain/1');
bdclose('demo');
🔗See Also
new_systemadd_blockset_paramget_paramsave_systemclose_system
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub