discardChanges
Discard changes to data dictionary entry
Syntax
Description
discardChanges( discards all changes
made to the data dictionary entry entryObj)entryObj, a Simulink.data.dictionary.Entry object, since the last time the containing data
dictionary was saved using the saveChanges function. The changes to the
entry are permanently lost.
Examples
Input Arguments
Tips
You can use the
discardChangesfunction or thesaveChangesfunction with an entire data dictionary, discarding or saving changes to all entries in the dictionary at once. However, only thediscardChangesfunction can additionally operate on individual entries. You cannot use thesaveChangesfunction to save changes to individual entries.
Alternatives
You can use Model Explorer and the Comparison Tool to discard changes to data dictionary entries. See View and Revert Changes to Dictionary Entries for more information.
Version History
Introduced in R2015a