How to update compiled .mat file in standalone?
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Adam
2014-11-12
Use the full path when saving. Otherwise it will dump it in some odd location related to the install directory.
4 个评论
Adam
2014-11-12
编辑:Adam
2014-11-12
I have set up an environment variable that my compiled applications use and ask the user to give a "Matlab working directory" for which is then used by all my compiled applications that user may install, but Titus' solution is simpler for just updating a given file.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!