The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: figure size
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Young Ryu

Posts: 140
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


I have a figure:

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.