フィルターのクリア

Saving movie of solution profile

1 回表示 (過去 30 日間)
María Jesús
María Jesús 2015 年 8 月 3 日
回答済み: Walter Roberson 2015 年 8 月 3 日
Hi, I'm creating a figure to see the progression of a solution in time:
figure
fig = plot(r, u(1,:), 'erase', 'xor')
for k = 2:length(t)
set(fig, 'xdata', r, 'ydata', u(k,:))
pause(.5)
title('Progression of Solution Profile in Time')
xlabel('Distance r')
ylabel('u(r,t)')
end
I would like to save this as a video file (preferably mp4, but avi is fine too). Can anyone help with this?
Thanks!

採用された回答

Walter Roberson
Walter Roberson 2015 年 8 月 3 日
Use the VideoWriter class. See the second example

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by