Main Content

getExportSimulinkSubSystems

R2026b

Class: slreportgen.webview.WebViewDocument
Namespace: slreportgen.webview

Subsystem paths and handles to export

Description

[paths,handles] = getExportSimulinkSubSystems(wvdoc) returns a cell array of subsystem paths and handles to export.

example

Input Arguments

expand all

Web view document, specified as an slreportgen.webview.WebViewDocument object.

Output Arguments

expand all

Subsystem paths in the model, returned as a cell array of character vectors.

Subsystem handles that correspond to the Subsystem paths, returned as an array of character vectors.

Examples

expand all

Get the paths and handles for a Web view of the slrgex_pitch_control Simulink® model and subsystems.

openExample("slrgex_pitch_control")
wvdoc = slreportgen.webview.WebViewDocument("myWebview","slrgex_pitch_control");
[paths,handles] = getExportSimulinkSubSystems(wvdoc)

paths =

  5×1 cell array

    {'slrgex_pitch_control/Aircraft Dynamics Model'              }
    {'slrgex_pitch_control/Controller'                           }
    {'slrgex_pitch_control/Controller/Proportional plus integral'}
    {'slrgex_pitch_control/Dryden Wind Gust Models'              }
    {'slrgex_pitch_control/Nz pilot calculation'                 }

handles =

  352.0057
  386.0056
  400.0024
  444.0061
  464.0056

More About

expand all

Version History

Introduced in R2017a