Contenu principal

getfullname

R2026b

Get path that identifies block or signal line

Description

elemPath = getfullname(handle) returns the path of the block or signal line specified by the handle handle. If you specify multiple handles, the function returns a cell array of paths.

example

Examples

collapse all

Suppose you have a loaded model that contains blocks whose handles are stored in the variables h1, h2, and h3.

Get the block path of the block with the handle h1.

getfullname(h1)

Get the block paths of all three blocks with one function call.

h = [h1;h2;h3];
getfullname(h)

Input Arguments

collapse all

Handle of one or more blocks or signal lines, specified as a numeric scalar or numeric array.

For information about getting handles, see Get Handles and Paths.

Example: h

Example: [h1,h2]

Data Types: double | array of doubles

Output Arguments

collapse all

Block or line path, returned as a character vector. If you specify multiple handles, the function returns a cell array of character vectors.

Data Types: character vector | cell array of character vectors

Version History

Introduced in R2007a