如何将绘图图像捕获到内存中?我正在尝试使用getframe
,但失败了
>> plot(h)
>> myhandle=plot(h)
myhandle =
174.0044
>> myframe=getframe(myhandle)
Error using graph2d.lineseries/get
The name 'Units' is not an accessible property for an instance of class 'lineseries'.
Error in getframe>Local_getRectanglesOfInterest (line 138)
if ~strcmpi(get(h, 'Units'), 'Pixels')
Error in getframe (line 56)
[offsetRect, absoluteRect, figPos, figOuterPos] = ...