It depends on what "delete" means.
You do not create variables by the setappdata command, but this function stores the contents of the variables in the ApplicationData of a GUI element. Afterwards you can remove the entry by rmappdata, as mentioned in the documentation of setappdata.
4 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/347736-how-to-reset-variables-in-matlab-gui#comment_467264
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/347736-how-to-reset-variables-in-matlab-gui#comment_467264
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/347736-how-to-reset-variables-in-matlab-gui#comment_467439
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/347736-how-to-reset-variables-in-matlab-gui#comment_467439
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/347736-how-to-reset-variables-in-matlab-gui#comment_467451
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/347736-how-to-reset-variables-in-matlab-gui#comment_467451
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/347736-how-to-reset-variables-in-matlab-gui#comment_467787
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/347736-how-to-reset-variables-in-matlab-gui#comment_467787
Sign in to comment.