From: Maxx Chatsko on 6 Jul 2010 09:23 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 6 Jul 2010 14:11 > 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 6 Jul 2010 15:04 > 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 9 Jul 2010 16:18 > 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
|
Pages: 1 Prev: How do I plot timestamps (seconds) in Matlab? Next: Equispaced Vector Error |