Main Content

clearAll

Remove variables from connected data source

Since R2024a

    Description

    example

    clearAll(connectionObj) removes the variables from the connected data source.

    Examples

    collapse all

    mw = Simulink.data.connect("myModel.slx");
    clearAll(mw);

    Input Arguments

    collapse all

    Connection to data source, specified as a Simulink.data.DataConnection object.

    Version History

    Introduced in R2024a