Discard changes to data dictionary entry
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.
You can use the discardChanges
function
or the saveChanges
function
with an entire data dictionary, discarding or saving changes to all
entries in the dictionary at once. However, only the discardChanges
function
can additionally operate on individual entries. You cannot use the saveChanges
function
to save changes to individual entries.
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.