Main Content

exportToScript

Export traceability matrix configuration to script

Since R2024a

    Description

    exportToScript(configuration,filename) exports the traceability matrix configuration, configuration, to the script, filename.

    example

    Examples

    collapse all

    This example shows how to export a traceability configuration to a script.

    Get the traceability matrix options from a saved view.

    view = slreq.getTraceabilityMatrixOptions("matrix_view.json");

    Get the traceability matrix configuration from the matrix options.

    configuration = view.options;

    Export the configuration to the file, matrixConfiguration.

    exportToScript(configuration,"matrixConfiguration");

    Input Arguments

    collapse all

    Traceability matrix configuration to export, specified as a slreq.matrix.Configuration object.

    File name of the exported script, specified as a string scalar or character vector.

    Data Types: char | string

    Version History

    Introduced in R2024a