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

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.

Introduced in R2018b