Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: figure size
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Young Ryu

Posts: 139
Registered: 1/7/08
figure size
Posted: Apr 19, 2011 10:20 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi-

I have a figure:

a=[1:10];
y=rand(1, 10);
plot(a, y)

Here, I'd like to save the plot as [1200 800] pixel size. Could you advise me how to do this? I tried below code, but did not work.

h1=figure('Position',[1 1 1200 800]);
plot(a, y)
print(h1,'-dtiff', 'test.tiff', '-r150')



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.