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 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)
linepath =

  0x1 empty cell array

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

|