How to update compiled .mat file in standalone?
조회 수: 1 (최근 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에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!