Main Content

slreportgen.utils.pathParts

Split diagram path into parent and diagram parts

Description

example

[parent,name] = slreportgen.utils.pathParts(diagramPath) splits a Simulink® diagram path into its parent diagram path and its diagram name.

Examples

Split Full Diagram Path into Parent and Diagram Parts

[parent,name] = slreportgen.utils.pathParts...
   ('slrgex_sf_car/transmission/transmission ratio')
parent = 

    "slrgex_sf_car/transmission"

name = 

    "transmission ratio"

Input Arguments

collapse all

Full diagram path, specified as a string or character array.

Output Arguments

collapse all

Parent diagram path, returned as a string.

Diagram name, returned as a string.

Introduced in R2018b