From: MUNIR NAYAK on 27 Jun 2010 07:36 "DanF211 " <daniel.cromb(a)iop.kcl.ac.uk> wrote in message <gqdmn5$isr$1(a)fred.mathworks.com>... > "A Ram" <shal.hat(a)gmail.com> wrote in message <gqdk2p$rr0$1(a)fred.mathworks.com>... > > ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <27ae434c-88a1-4303-9c58-671ff76e55f3(a)z8g2000prd.googlegroups.com>... > > > On Mar 25, 10:20=A0am, "A Ram" <shal....(a)gmail.com> wrote: > > > > Hello, > > > > > > > > How can I automatically save the outputs of an algorithm, instead of havi= > > > ng to save one by one after they are output? > > > > > > > > Thanks ! > > > > > > ------------------------------------------------------------------------ > > > Well you could write some code into your m-file, such as using the save > > > () function to save it to a mat file. You'll have to come up with the > > > filename and the variables you want to save. Not sure what you mean > > > by "automatic." > > > > I tried: > > %saveas figure: > > saveas(gcf,'group_char(97+group-1).jpg') > > > > in a for loop for "group" but did not work, > > > > I also tried: > > > > %saveas figure: > > saveas(gcf,'filename.jpg') > > > > also did not work,, > > what about: > saveas(1,'filename.bmp') > Does that work? %%Hi dear friends here is what i work with when i get in such situations.... for i =1:n %% my code.......... saveas(gcf, ['My Beautifull Figure' ,num2str(i), '.figuretype']); end %% Hope this will help you
From: MUNIR NAYAK on 27 Jun 2010 09:23 "A Ram" <shal.hat(a)gmail.com> wrote in message <gqdeij$k88$1(a)fred.mathworks.com>... > Hello, > > How can I automatically save the outputs of an algorithm, instead of having to save one by one after they are output? > > Thanks ! %<MUNIR AHMAD NAYAK> munir.nit70(a)gmail.com %%Hi dear friends here is what i work with when i get in such situations.... for i =1:n %% my code.......... saveas(gcf, ['My Beautifull Figure' ,num2str(i), '.figuretype']); end %% Hope this will help you
|
Pages: 1 Prev: How do I create a cell array that can be recognised by SPM? Next: simulink image process |