MATLAB: How to update compiled .mat file in standalone

.mat filematlab guistandalone

Hi, i have a gui standalone where i load and save data from/to a .mat file. Loading does work with fallowing code…
load(defaultValues.mat)
but saving it with
save(defaultValues.mat)
creats a new .mat file and does not update the original. How can i save to the original .mat file?
There are already some QUESTIONS about this topic put this answer does not work for me…

Best Answer

Use the full path when saving. Otherwise it will dump it in some odd location related to the install directory.