Saving Figure using saveas() function
显示 更早的评论
Is there any way by which I can save the current figure?.
When I use saveas() function eg)saveas(gcf,'pred_prey.jpg') the current image in the figure gets saved but with a white background with my image centered in it.
I need only the image no need of the white background. How can I do that?
https://picasaweb.google.com/lh/photo/xxof9xl2tRBx0GttFdESBJOzMXS1UfqXPDW9N1lFu0w?feat=directlink

1 个评论
Jan
2011-2-18
The link shows a picture, but it does not clear the difference of what you get and waht you want.
采纳的回答
更多回答(2 个)
Doug Hull
2011-2-18
0 个投票
If you have the image as a matrix that you used in IMSHOW, then IMWRITE directly on the matrix should work.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!