Help Center
Get path that identifies block or line
path = getfullname(handle)
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
example
collapse all
Open the example. Then, open the vdp model.
vdp
open_system('vdp')
In the model, interactively select the block named Mu.
Mu
Get the path that identifies the currently selected block.
blkpath = getfullname(gcb)
blkpath = 'vdp/Out2'
In the model, select the signal line that connects to the output port of the block named Mu.
Get the handle of 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);
To display the path, enter this command in the MATLAB® Command Window.
disp(linepath)
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
Introduced in R2007a
gcb | find_system
gcb
find_system
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other bat365 country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office