Hi, I have an invisible figure in which I have 2 color images (displayed by imshow) and some red points (displayed by plot) on the image. I want to save the image with those points to a new variable in MATLAB in workspace. Up to now, I have been succeeded to export the whole figure data to a jpg file with print command. But since I am then forced to read that JPG file, it makes the process slow. Also, I tried getframe(figure_handle), but when it runs, the figure is displayed and so it is not suitable. I am looking for something similar to im = getframe(figure_handle) but in a way that figure is not displayed. I would really appreciate any help of yours to solve this problem.
MATLAB: How to export the whole figure data into MATLAB workspace
exportfigureimshowinvisiblematlab plot
Best Answer