getfullname
Return the full path of a block or model from its handle.
📝Syntax
path = getfullname(handle)
📥Input Arguments
Parameter Description
handle a numeric handle (block or model), a char block path, or a cell array of handles.
📤Output Arguments
Parameter Description
path the full path: 'model/BlockName' for a block handle, 'model' for a model handle. A cell array of handles yields a cell array of paths.
📄Description

getfullname returns the full path that identifies the block or model named by a handle. A block handle yields 'model/BlockName'; a model handle yields 'model'.

It is the inverse of getNFlowBlockHandle. A char path is already a full name and is returned unchanged. A cell array of handles yields a cell array of paths of the same shape.

An unknown handle raises an error.

💡Examples
new_system('demo');
add_block('nflow/math/gain', 'demo/Gain');
h = getNFlowBlockHandle('demo/Gain');
path = getfullname(h)
bdclose('demo');
🔗See Also
getNFlowBlockHandleget_paramfind_systembdroot
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub