How to get the name of the mat file saved from the uisave function?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am going to write a GUI based program. The workspace data-set needs to be saved as a Project file. In fact, I want to design some buttons named 'Save' , 'Save as' and 'Load'. Anyone can help me to write its code suitably?. I need to know the name and address of the file that has been saved from uisave function.
0 commentaires
Réponse acceptée
Jan
le 8 Oct 2016
Modifié(e) : Jan
le 8 Oct 2016
Do not use uisave but:
[filename, filepath] = uiputfile('*.mat', 'Save the project file:')
if isequal(filename,0) || isequal(pathname,0)
disp('User pressed cancel')
return;
end
FileName = fullfile(pathname, filename);
save(FileName, 'YourData');
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Database Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!