MATLAB Answers

Get Path of Saved File

2 views (last 30 days)
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 Comments

Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 18 Dec 2019
use uiputfile() which can return path and file name. then save()

  1 Comment

Mateus Banroc
Mateus Banroc on 18 Dec 2019
It works perfectly!! Thanks Fangjun Jiang!!

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by