Main Content

slreportgen.utils.pathJoin

Combine two diagram path parts

Description

example

diagrampath = slreportgen.utils.pathJoin(parent,name) combines the parent and name paths to create a full Simulink® diagram path. Any newlines are converted to spaces.

Examples

Combine Parent Diagram Path and Diagram Name

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

openExample('rptgenext/SimulinkReportGeneratorFilesExample');
slreportgen.utils.pathJoin("slrgex_sf_car/transmission",...
   "transmission ratio")
diagpath = 

    "slrgex_sf_car/transmission/transmission ratio"

Input Arguments

collapse all

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

Diagram name, specified as a string or character array.

Output Arguments

collapse all

Full diagram path, returned as a string.

Version History

Introduced in R2018b