[請益] 有關movie2avi輸出的檔案的問題已回收

看板MATLAB作者 (落葉)時間15年前 (2010/11/29 21:07), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
文章最下面為Code 目前我遇到的問題是 不寫'compression','none'就無法輸出檔案 會跳出 --- ??? Error using ==> movie2avi at 58 Inputs must be a MATLAB movie, a filename, and param/value pairs. Error in ==> dipolemovie at 17 movie2avi(F,'summer','none') --- 或是 --- Warning: The frame width has been padded to be a multiple of four as required by the specified codec. > In avifile.addframe at 133 In movie2avi at 64 In dipolemovie at 17 --- 可是輸出的檔案只有一個畫面,連動也不會動 請問哪邊出錯了呢? -- i=-0.5*pi:pi/1024:0.5*pi; for t=0:48; j=-(23.5+8*sin(t*pi/24))*pi/180; for L=-10:0.5:10; r=L.*(cos(i+j)).^2; r(r<=1 & r>=0)=1; r(r>=-1 & r<=0)=-1; x=r.*cos(i); y=r.*sin(i); plot(x,y) hold on end axis('equal') F=getframe; hold off end movie2avi(F,'summer','compression','none') movie(F) -- │││││ ▃▅▅▆ ││││ (cat_/ ││ ▊Moon▄▂ │ ─ _▍_ ▃▅  ̄ ◢ *Mooncat~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.16.56
文章代碼(AID): #1CywM3S0 (MATLAB)
文章代碼(AID): #1CywM3S0 (MATLAB)