Main Content

slreportgen.utils.pathParts

Split diagram path into parent and diagram parts

Description

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

example

Examples

collapse all

[parent,name] = slreportgen.utils.pathParts...
   ("sf_car/transmission/transmission ratio")
parent = 
"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.

Version History

Introduced in R2018b