[問題] getframe究竟是什麼呢?已回收

看板MATLAB作者 (Wesely翁)時間15年前 (2010/10/19 06:16), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
我進去說明檔看了 他說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
文章代碼(AID): #1ClCSaFa (MATLAB)
文章代碼(AID): #1ClCSaFa (MATLAB)