Main Content

Simulink.sdi.clearSubPlot

Clear plotted signals from single subplot in Simulation Data Inspector

Since R2024b

    Description

    Simulink.sdi.clearSubPlot(r,c) clears plotted signals from the subplot at the location specified by r and c in the Simulation Data Inspector subplot layout.

    example

    Examples

    collapse all

    Use the Simulink.sdi.clearSubPlot function to programmatically clear plotted signals from a single subplot. For example, clear plotted signals from the subplot in the first row and second column of a subplot layout.

    Simulink.sdi.clearSubPlot(1,2)

    Input Arguments

    collapse all

    Subplot row index, specified as an integer between 1 and 8, inclusive. Use the r and c inputs together to specify the location of the subplot for which you want to get the visualization type. For more information about how the Simulation Data Inspector indexes subplots, see Moving Between Subplot Layouts.

    Subplot column index, specified as an integer value between 1 and 8, inclusive. Use the r and c inputs together to specify the location of the subplot for which you want to get the visualization type. For more information about how the Simulation Data Inspector indexes subplots, see Moving Between Subplot Layouts.

    Version History

    Introduced in R2024b