I'd like to know if I should explicitly call rmappdata on anything stored using setappdata before the relevant object is deleted to avoid filling up my memory, or do these variables get "garbage-collected" on their own?
According to my test on R2017b@Win10 (code below) this memory is indeed freed, but is this behavior documented somewhere? Is it the same across all supported operating systems and MATLAB versions?
hFig = uifigure;
setappdata(hFig, 'NOISE', randi(5,40001));