How to "save" to workspace image received by few operations?
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I am currently working on a project, in which it would be very helpful to "save" to workspace image received by making few plots.
I dont know if i said it properly, so for example if i have first image, then i use "hold on" commend and then draw some contours on this image, how can I save the image I received (original image with contours) as a new image?
Thanks in advance
0 个评论
回答(1 个)
Star Strider
2019-12-17
See if the savefig function will do what you want. It saves the complete figure and the vectors or matrices that were used to create it, as well as the legend, axis titles, and everything else, so you have them and can modify them later if you want to, without altering the original file.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!