Main Content

clearAll

Remove variables from connected data source

Since R2024a

    Description

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

    example

    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