If each element has the same size you don't even need to resize before you concatenate the parts and use imwrite. In a pinch you could also adjust the positions of the subplot, so that their edges touch, followed by saveas.
Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to combine this imge to a single image?
1 次查看(过去 30 天)
显示 更早的评论
how to combine ..suggest some code?
3 个评论
Rik
2018-3-27
You really shouldn't do that if the image parts are the same size.
But if you insist: first get the handle to every subplot axes object (just save the output of subplot in an array), and set the Units property to Normalized. Then it is trivial to set the Position property to increasing fractions. Make sure your figure has the same aspect ratio as your image parts and you are ready to use saveas.
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!