Main Content

slreportgen.utils.pathSplit

Split diagram path into array of diagram parts

Description

example

parts = slreportgen.utils.pathSplit(diagrampath) splits the input Simulink® diagram path into a string array of diagram names.

Examples

Split Diagram Path Into Separate Parts

Run the following command to access the supporting files used in this example.

openExample('rptgenext/SimulinkReportGeneratorFilesExample');
parts = slreportgen.utils.pathSplit...
   ("slrgex_sf_car/transmission/transmission ratio")
parts = 

  1×3 string array

    "slrgex_sf_car"    "transmission"    "transmission ratio"

Input Arguments

collapse all

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

Output Arguments

collapse all

Diagram path parts, returned as a string array.

Version History

Introduced in R2018b