[問題] getframe究竟是什麼呢?已回收
我進去說明檔看了
他說getframe會像拍照一樣存下當前的axis
有趣的是他自己的範例自己卻也無法執行...
***************************************************
% Examples
% Make the peaks function vibrate.
Z = peaks; surf(Z)
axis tight
set(gca,'nextplot','replacechildren');
for j = 1:20
surf(sin(2*pi*j/20)*Z,Z)
F(j) = getframe;
end
movie(F,20) % Play the movie twenty times
***************************************************
結果是左下角顯示busy但是圖片卻不會變
image(M(t).cdata);
來看M裡面發現每張都一樣...
經過嘗試不同的畫圖指令後,發現似乎有動到座標的都不能getframe
例如 surf / mesh / view
但是如果是 colormap 卻沒有問題,不知道原因何在?
如果這是真的,那getframe的功能真的是很受限耶...還是我漏掉什麼了嗎?
--
╔╦╦╦══╦══╦══╦═╦═╦═╗◣
║║║║ ═╣ ═╣ ═╣ ║ ║
║║║║ ═╬═ ║ ═╣ ╚╗ ╔╝
╚══╩══╩══╩══╩══╩═╝\\
◥████████████████ \
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.25.181.237
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):