How do I make axes and colorbar remain constant when creating a movie with figure frames?

25 ビュー (過去 30 日間)
Michelle Acuna
Michelle Acuna 2021 年 1 月 2 日
回答済み: Prabhanjan Mentla 2021 年 1 月 5 日
I'm trying to create a movie in MATLAB showing how heat transfers with time. In my code I have a time loop that creates a 3D surf plot with every iteration. Using 'getframe' and 'writeVideo' within the time loop I am creating the movie.
My problem is that since I am creating a different plot with every iteration, my axes and colorbar change and the movie does not look fluid.
Is there a way I can make the axes and colorbar remain constant during the time loop so that the movie looks better? Thanks!

回答 (1 件)

Prabhanjan Mentla
Prabhanjan Mentla 2021 年 1 月 5 日
Hi,
caxis may help to set the colormap limits within a range. To make them remain constant while creating a movie, you can check this link.
Hope this helps.

カテゴリ

Help Center および File ExchangeOrange についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by