How to save an image using a push button on MATLAB gui
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tania
le 26 Août 2015
Commenté : Walter Roberson
le 19 Mar 2017
Hi,
I have just started working with MATLAB GUI. I can open an image, process the image but unable to save the image to a destination folder.
Any help will be appreciated.
0 commentaires
Réponse acceptée
Walter Roberson
le 26 Août 2015
[filename, foldername] = uiputfile('Where do you want the file saved?');
complete_name = fullfile(foldername, filename);
imwrite(TheArray, complete_name);
6 commentaires
Image Analyst
le 19 Mar 2017
They are returned from uiputfile() - it's whatever the user chose. You can also use imsave() instead of uiputfile().
Walter Roberson
le 19 Mar 2017
In other words they are not constants, they are values returned by the uigetfile routine according what the user chooses.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps 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!