Main Content

isDirty

Check for unsaved changes in Simulink data dictionary

Since R2023b

    Description

    example

    hasUnsavedChanges = isDirty(archDataObj) returns a 1 (true) if the data dictionary specified by archDataObj has unsaved changes.

    Examples

    collapse all

    To determine whether a data dictionary has unsaved changes, use the isDirty function. For an example that shows more of the workflow for related functions, see Create Architectural Data Object and Use It to Configure Architectural Data.

    isDirty(archDataObj)
    ans =
    
      logical
    
       1

    Input Arguments

    collapse all

    Architectural Data object, specified as a Simulink.dictionary.ArchitecturalData object.

    Version History

    Introduced in R2023b