Save a plot in Matlab as a matrix [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-11-28 14:19:55

You should check out the functions getframe and frame2im to convert a figure or axes object to an image matrix.

How about save to an image? You can use getframe to get a frame object F, where F.cdata contains the RGB values. Remember to use 'border', 'tight' option to avoid capturing the borders.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!