MATLAB Answers

Get Path of Saved File

2 ビュー (過去 30 日間)
Mateus Banroc
Mateus Banroc 2019 年 12 月 18 日
コメント済み: Mateus Banroc 2019 年 12 月 18 日
Hi everyone,
I'm working in an app with matlab. The variables that the app creates/edits are being saved in .mat file with uisave. After saving, the app continues to work (till here, no problems). However, after editing the variables in the app, I want to save them again, but overwriting the same saved file before, witch I can't because I don't have the path or the name of the file saved with uisave.
The solution I get is to use uisave every time (for new files or not) and let the user overwrites manually a saved file

  0 件のコメント

サインイン to comment.

採用された回答

Fangjun Jiang
Fangjun Jiang 2019 年 12 月 18 日
use uiputfile() which can return path and file name. then save()

  1 件のコメント

Mateus Banroc
Mateus Banroc 2019 年 12 月 18 日
It works perfectly!! Thanks Fangjun Jiang!!

サインイン to comment.

その他の回答 (0 件)

サインイン してこの質問に回答します。


Translated by