- 'MAT' file that contains value of 'hnew'.
- The exact error messages you are receiving, if any.
- How can I reproduce this issue at my end.
I am using plot. And I want to save my continuously changing plot in time loop. I have applied this code but error is coming regarding the frame rates. Please help.
1 次查看(过去 30 天)
显示 更早的评论
%Initialize video
myVideo = VideoWriter('myVideoFile'); %open video file
myVideo.FrameRate = 6; %can adjust this, 5 - 10 works well for me
open(myVideo)
for t=0:dt:T
% something happening here
plot(hnew)
ylim([0,6.5])
pause(0.1)
frame = getframe(gcf); %get frame
writeVideo(myVideo, frame);
end
close(myVideo)
1 个评论
Suvansh Arora
2022-12-2
In order to understand this better, I would need your help with the following information:
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!