how to set the figure width
12 次查看(过去 30 天)
显示 更早的评论
I am trying to create a figure of width and height of 3 inches from an existing saved figure. How can I do this?
I would like to save this figure as a .png of the same size. Can I save this as png of this (3x3 inches) size.
I have also noticed that some parts of the labels disappears when saving it to .png. Why is this so? How do I prevent this?
Many thanks,
0 个评论
采纳的回答
Azzi Abdelmalek
2013-4-30
编辑:Azzi Abdelmalek
2013-4-30
figure
set(gcf,'paperunits','inches')
set(gcf,'position',[0 0 3 3])
saveas(gcf,'fig1.png')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!