GETFRAME関数で取得する画像に軸やタイトルなどを含ませることができますか?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 25 Ott 2013
Risposto: MathWorks Support Team
il 25 Ott 2013
getframeを使って、連続的に変わるfigureのフレームを取得し、アニメーションを作ろうとしているのですが、グラフの軸やタイトルが取得できません。
Risposta accettata
MathWorks Support Team
il 25 Ott 2013
GETFRAME関数にgcfなどのフィギュアのハンドルを入力引数として入れますと、フィギュアにあるタイトル情報や座標軸などを含ませることができます。
- サンプルコード:
Z = peaks; surf(Z);title('GETFRAME関数テスト')
axis tight
set(gca,'nextplot','replacechildren');
for j = 1:20
surf(sin(2*pi*j/20)*Z,Z)
F(j) = getframe(gcf);
end
movie(F,20)
movie2avi(F, 'myPeaks.avi', 'compression', 'None');
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su アニメーション in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!