Main Content

getfullname

Get path that identifies block or line

Description

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.

example

Examples

collapse all

Open the example. Then, open the vdp model.

open_system('vdp')

In the model, interactively select the block named Mu.

Get the path that identifies the currently selected block.

blkpath = getfullname(gcb)
blkpath = 
'vdp/Out2'

Open the example. Then, open the vdp model.

open_system('vdp')

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.

Input Arguments

collapse all

Block or line, specified as a handle or cell array of handles.

Example: getfullname(gcb)

Example: getfullname({handle1,handle2})

Data Types: double | cell

Version History

Introduced in R2007a

See Also

|