Main Content

isDirty

Check whether there are unsaved changes in Simulink interface dictionary

Description

example

isDirty(dictObj) determines whether the dictionary has unsaved changes.

Examples

collapse all

To determine whether the dictionary has unsaved changes, use the isDirty function. For an example that shows more of the workflow for related functions, see Create and Configure Interface Dictionary.

isDirty(dictAPI)
ans =

  logical

   1

Input Arguments

collapse all

Interface dictionary, specified as a Simulink.interface.Dictionary object. Before you use this function, represent the target dictionary with a Simulink.interface.Dictionary object by using Simulink.interface.dictionary.create or Simulink.interface.dictionary.open.

Version History

Introduced in R2022b