Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

getfullname - Get pathname of block or line

Syntax

path=getfullname(handle)

Description

path=getfullname(handle) returns the full pathname of the block or line specified by handle.

Examples

getfullname(gcb) returns the pathname of the block currently selected in the model editor's window.

The following code returns the pathname of the line currently selected in the model editor's window.

line = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', ...
      'Type', 'line', 'Selected', 'on');
path = getfullname(line);

See Also

gcb, find_system

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS