Get path that identifies block or line
path = getfullname(handle)
example
path = getfullname(handle) returns the full path that identifies the block or line specified by handle. If you specify multiple block or line handles, the function returns a cell array of paths.
path
handle
collapse all
Open the vdp model.
vdp
Interactively, select the block named Mu.
Mu
Get the path that identifies the currently selected block.
blkpath = getfullname(gcb)
blkpath = 'vdp/Mu'
Interactively, select the output line from the block named Mu.
Get the handle associated with the currently selected line.
line = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', ... 'Type', 'line', 'Selected', 'on');
Get the path that identifies the currently selected line.
linepath = getfullname(line)
linepath = 'vdp/Mu/1'
The path describes the source port of the line.
Block or line, specified as a handle or cell array of handles.
Example: getfullname(gcb)
getfullname(gcb)
Example: getfullname({handle1,handle2})
getfullname({handle1,handle2})
Data Types: double | cell
double
cell
find_system | gcb
find_system
gcb