Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Save a graph using commands' topicStudent Support Forum > General > Archives > "Save a graph using commands"

Next Comment >Help | Reply To Topic
Author Comment/Response
08/23/12 07:56am

Dear All:

I have two questions:

Do you know how save a graph in mathematica, but using command?
how can I change the name of a file in a loop?

my idea is to do a small program like this:
(in pseudo code)

F(x,T) # function depends on T and x

FOR T0=1 to 100

Plot[ F(x,T0), {x,0,1}]

Filename= sprintf('f%d',T0);
# Matlab command, now Filename = T0 (Character)

print(Filename, '-dtiff')
# This command is of Matlab and It permits save
# the graph as T0.tiff
close # close the graph


Any comments!!!

Best Regards E.

URL: ,

Subject (listing for 'Save a graph using commands')
Author Date Posted
Save a graph using commands emigdio 08/23/12 07:56am
Re: Save a graph using commands Bill Simpson 08/23/12 11:55am
Next Comment >Help | Reply To Topic