Main Content

getfullname

Get path that identifies block or line

Description

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.

Examples

collapse all

Open the vdp model.

vdp

Interactively, select the block named Mu.

Get the path that identifies the currently selected block.

blkpath = getfullname(gcb)
blkpath =

    'vdp/Mu'

Open the vdp model.

vdp

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.

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

See Also

|

Introduced in R2007a