Animate results from PDE toolbox
6 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am trying to animate results from a PDE toolbox script.
F=figure(1);
MyVideo = VideoWriter(sprintf('2DSys.avi'));
MyVideo.FrameRate = 10;
MyVideo.Quality = 100;
open(MyVideo);
for i = 1:length(result.SolutionTimes)
pdeplot(MyModel,'XYData',result.NodalSolution(:,i),'ColorBar','off');
title({['Time=' num2str(result.SolutionTimes(i)) 's']})
% colormap(jet)
% axis tight
% ax = gca;
% axis off
M(:,i) = getframe(F);
writeVideo(MyVideo, M(:,i));
drawnow
end
But I don't have any frames written to my file. The script is executing without errors on my pc.
On analyzing my M output structure I see that the colormap entries turn out empty. Attaching M as well.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Geometry and Mesh についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!