Uiputfile problem - how do i tell callback which file I want it to save?
4 views (last 30 days)
I have a GUI (made with GUIDE) that processes images and returns an output to a result axes (result-axes). I now want to get the user to save this resultant file using uiputfile. The code I am using is
[filename,pathname] = uiputfile('*.mat','Save As...');
What code do I add now to point the program to the result_axes and export the file that now appears there so that the user can save it? I'm guessing its something to do with (gcf, handles.result_axes) but apart from that I am not sure.
Any help would be most welcome Sue x
Fangjun Jiang on 21 Jul 2011
Assume you have your processed image data in a variable called ImageData (I am creating some data to explain it). The following will save the data to an .mat file.