Prev: Fast access to rows and columns of sparse matrices
Next: Solving 2 non linear equations with 2 unknown
From: Md. Niazul on 23 May 2010 04:30 Walter Roberson <roberson(a)hushmail.com> wrote in message <V8%Jn.14558$Gx2.9413(a)newsfe20.iad>... > Md. Niazul wrote: > > i have to save a mtalab genertaed imagae to a specific location in GIF > > format. can u help pls.thanx > > Specify the full pathname when you write out the GIF using imwrite() . > You can also specifically tell it to use GIF format (e.g., in case the > user input a filename that did not end in .gif ) thank you roberson..i want to give the location from save tool box(pop-up window)..how can i do that using imwrite?t
From: ImageAnalyst on 23 May 2010 07:50 You need to call uiputfile() before calling imwrite().
From: Md. Niazul on 23 May 2010 15:37 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <e0b85795-d840-4186-a8ab-5c55edd478da(a)o15g2000vbb.googlegroups.com>... > You need to call uiputfile() before calling imwrite(). but it does not work..here is my code: x=linspace(0,10,100); y=sin(x); plot(x,y); uiputfile() imwrite(1,'filename','GIF') i am not sure how to use the uiputfile and imwrite functions here..i cant get much help from Help file..or can i use imsave function...but i also cant understand,how to use imsave function?help file is not clear to me..pls help.thanx
From: Walter Roberson on 23 May 2010 19:17 Md. Niazul wrote: > ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message > <e0b85795-d840-4186-a8ab-5c55edd478da(a)o15g2000vbb.googlegroups.com>... >> You need to call uiputfile() before calling imwrite(). > > but it does not work..here is my code: > x=linspace(0,10,100); > y=sin(x); > plot(x,y); > uiputfile() > imwrite(1,'filename','GIF') > > i am not sure how to use the uiputfile and imwrite functions here..i > cant get much help from Help file..or can i use imsave function...but i > also cant understand,how to use imsave function?help file is not clear > to me. Read the documentation. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/uiputfile.html and look in the Example section. Once you have a filename and pathname returned from uiputfile, and you have checked in case the user requested to cancel the operation, then use fullfilename() to create a complete file name and pass that to imwrite() in place of a quoted string.
From: Md. Niazul on 23 May 2010 21:25 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <e0b85795-d840-4186-a8ab-5c55edd478da(a)o15g2000vbb.googlegroups.com>... > You need to call uiputfile() before calling imwrite(). when i use the plot() function ,it generates a plot named for example' Figure 1'. how can i use it in imwrite ().??? pls help...thanx
|
Next
|
Last
Pages: 1 2 3 Prev: Fast access to rows and columns of sparse matrices Next: Solving 2 non linear equations with 2 unknown |