Problem with creating video and frame
Show older comments
Dear Matlab Team,
I have a question regarding creating the video.
I have this, at the beginnig of my code, before the "for t=1:1000"
fig = figure('Position', [100, 100, 1924, 975]);
axis tight manual;
------------------------
drawnow;
frame = getframe(fig);
writeVideo(writerObj, frame);
-------------------------
But still get the error:
Error using VideoWriter/writeVideo
Frame must be 1924 by 975
Error in testfile (line 741)
writeVideo(writerObj, frame);
Thank you
Accepted Answer
More Answers (0)
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!