Remove application data
Create a figure window. Then, get the current time by using the
date function. Store
val in the figure object with name identifier
f = figure; val = date; setappdata(f,'todaysdate',val)
Confirm that the data is stored.
ans = logical 1
Remove the stored data. Identify the data to remove by its associated figure and name identifier.
Confirm that the data is no longer stored in the figure.
ans = logical 0
obj— Graphics object storing the data
UIControlobject | ...
Graphics object storing the data, specified as any graphics object. This object is
the same graphics object passed to
setappdata during the storage
name— Name identifier
Name identifier of the data, specified as a character vector or string scalar. This
identifier is the same name identifier passed to
the storage operation.