From: Maxx Chatsko on
Hello all,
Not sure if this is possible, but I was wondering if I can change what the save button does in the top of a plot figure (GUI). My parent function displays different plots in separate figure windows depending on USER inputs. It seems that MATLAB automatically assigns a menu bar to each plot. So, when you click 'Save' it saves the figure as a .fig file. I need to save it as a .spc, which requires another function to convert the image data into this filetype. Right now I just added a note and a 'Save spectra as .spc' pushbutton that executes the function that converts the image to .spc. It works, its just not the most user-friendly in my opinion. I'm using guide, which may be the problem? Any quick uicontrol fixes for this minor dilemna?
Thanks
Maxx
From: Yair Altman on
> Not sure if this is possible, but I was wondering if I can change what the save button does in the top of a plot figure (GUI).

Of course: http://undocumentedmatlab.com/blog/modifying-default-toolbar-menubar-actions/

Yair Altman
http://UndocumentedMatlab.com
From: Maxx Chatsko on
> Yair Altman
> http://UndocumentedMatlab.com

> Of course: http://undocumentedmatlab.com/blog/modifying-default-toolbar-menubar-actions/

Thanks Yair Altman! I should've checked your website earlier (I use it a lot).
Maxx
From: Maxx Chatsko on
> Of course: http://undocumentedmatlab.com/blog/modifying-default-toolbar-menubar-actions/
>
> Yair Altman
> http://UndocumentedMatlab.com

So I have a function that converts data from a .tif image to a .spc image. How can I change how Matlab saves files (to execute my program) and add .spc to the 'Extension type' list?
Thanks
Maxx