Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: How can I save subplots with different name in a for

Subject: How can I save subplots with different name in a for

From: Anestis Papadopoulos

Date: 28 Jun, 2008 20:51:02

Message: 1 of 5

I have a for that runs for 81 times and i get 5 subplots its
time that I want to save them with different name so I can
use them later.Is there a chance that I can do that?

Subject: How can I save subplots with different name in a for

From: vedenev

Date: 29 Jun, 2008 04:06:33

Message: 2 of 5

Use hgsave function, example:

hf=figure;
plot([1 2], [3 4]);
hgsave(hf,'my_figure.fig');

------------------------------------
Maxim Vedenev, Matlab freelancer
http://simulations.narod.ru/

Subject: How can I save subplots with different name in a for

From: Miroslav Balda

Date: 29 Jun, 2008 20:48:02

Message: 3 of 5

"Anestis Papadopoulos" <loslen1@yahoo.com> wrote in message
<g4687m$buj$1@fred.mathworks.com>...
> I have a for that runs for 81 times and i get 5 subplots its
> time that I want to save them with different name so I can
> use them later.Is there a chance that I can do that?

Hi

I assume that the function freename could solve your
problem. Is returns a sequence of not repeating names in a
subdirectory. You may find it in FEX, Id. 9036.

Mira

Subject: How can I save subplots with different name in a for

From: Miroslav Balda

Date: 29 Jun, 2008 20:48:02

Message: 4 of 5

"Anestis Papadopoulos" <loslen1@yahoo.com> wrote in message
<g4687m$buj$1@fred.mathworks.com>...
> I have a for that runs for 81 times and i get 5 subplots its
> time that I want to save them with different name so I can
> use them later.Is there a chance that I can do that?

Hi

I assume that the function freename could solve your
problem. Is returns a sequence of not repeating names in a
subdirectory. You may find it in FEX, Id. 9036.

Mira

Subject: How can I save subplots with different name in a for

From: Steven Lord

Date: 30 Jun, 2008 02:59:25

Message: 5 of 5


"Anestis Papadopoulos" <loslen1@yahoo.com> wrote in message
news:g4687m$buj$1@fred.mathworks.com...
>I have a for that runs for 81 times and i get 5 subplots its
> time that I want to save them with different name so I can
> use them later.Is there a chance that I can do that?

See question 4.12 in the newsgroup FAQ:

http://matlabwiki.mathworks.com/MATLAB_FAQ

Use the functional form of PRINT, HGSAVE, IMWRITE, etc. instead of the LOAD,
IMREAD, FOPEN calls that are used in the first example.

--
Steve Lord
slord@mathworks.com


Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics