From: Steven Lord on 3 Jun 2010 12:43 "Samiov " <Samyw69(a)yahoo.fr> wrote in message news:hu8l1h$cgu$1(a)fred.mathworks.com... >I have a figure that appears in an axis in my GUI and I created a >pressbutton called "save" > How to open a window which permits to choose a directory where I can save > the figure as a bitmap image by pressing on that button??? HELP UIGETDIR. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: Samiov on 3 Jun 2010 14:09 "Steven Lord" <slord(a)mathworks.com> wrote in message <hu8m24$ko8$1(a)fred.mathworks.com>... > > HELP UIGETDIR. __________________________________________________________________________ Can you tell me how to do it?? I'm a beginner..It would take me a long time to fix it and I have to do it this night..Is there a code? coz it seems a classic problem..no??
From: Steven Lord on 3 Jun 2010 16:05 "Samiov " <Samyw69(a)yahoo.fr> wrote in message news:hu8r4l$7k4$1(a)fred.mathworks.com... > "Steven Lord" <slord(a)mathworks.com> wrote in message > <hu8m24$ko8$1(a)fred.mathworks.com>... >> >> HELP UIGETDIR. > > __________________________________________________________________________ > > Can you tell me how to do it?? I'm a beginner..It would take me a long > time to fix it and I have to do it this night..Is there a code? coz it > seems a classic problem..no?? I did -- type the following at the prompt: help uigetdir and read through the syntax for that function to learn how to call that function. If I remember correctly, there are also some examples that you can try out and use as a "template" for the usage in your code. If you read through the help and still have problems, post a SMALL segment of your code that isn't working as you expect and someone may be able to help you with that problem. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: ImageAnalyst on 3 Jun 2010 16:11 You might want to allow your user to specify the filename also. If you do, then you'd put a call to uiputfile() in the callback of your button. Then after uiputfile(), you'd call imwrite().
|
Pages: 1 Prev: how to extract matrix data from gui contour plot Next: Line plot covered by surface plot |