AVIファイルを作成​する際にエラーが表示​されるのはなぜですか​?

14 次查看(过去 30 天)
MathWorks Support Team
下記のようにAVIファイルを作成すると、エラーが表示されます。
mov = avifile('fn6.avi');
figure
line
mov = addframe(mov,gcf);
pause
mov = addframe(mov,gcf);
mov = close(mov);
(エラーメッセージ)
Error using ==> avifile.addframe>ValidateFrame
Frame must be 560 by 421.
回避方法を教えてください。

采纳的回答

MathWorks Support Team
GETFRAME関数をご利用いただくことで回避することが可能です。
mov = avifile('pd3.avi');
figure
surf(peaks)
frame = getframe(gcf);
mov = addframe(mov,frame);
frame = getframe(gcf);
mov = addframe(mov,frame);
mov = close(mov);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 印刷と保存 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!