Can i record a figure as it is being plotted so that i can send it as an email attachment and viewed by someone who does not have matlab?
조회 수: 7 (최근 30일)
이전 댓글 표시
Please do tell me whether this possible- or suggest the closest solution.
댓글 수: 0
답변 (1개)
bio lim
2015년 7월 13일
writerObj = VideoWriter('example.avi');
writerObj.FrameRate = 60;
open(writerObj);
Z = peaks; surf(Z);
axis tight
set(gca,'nextplot','replacechildren');
set(gcf,'Renderer','zbuffer');
for k = 1:20
surf(sin(2*pi*k/20)*Z,Z)
frame = getframe;
writeVideo(writerObj,frame);
end
close(writerObj);
The animated plot is saved as an .avi file.
댓글 수: 4
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!