imagescの上にquiverを重ねるには
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
imagescで作成したカラーマップとquieverで作成した矢印を重ねて描画したいのですが、どのようにすればよいのでしょうか。
作りたい図のイメージを添付します。よろしくお願いいたします。

0 commentaires
Réponse acceptée
Atsushi Ueno
le 1 Juil 2021
hold onを実行すると既存のプロットが削除されなくなります。体裁を出来るだけ近付けましたが値は適当です。
mn = -10; mx = 10;
[X,Y] = meshgrid(mn:mx,mn:mx);
imagesc([mn mx],[mn mx],-0.93 - X.*Y.*0.0007);
hold on; % <-ここです
quiver(X,Y,X,Y);
colormap jet;
colorbar;
title('Quiver Plot');
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur カラーマップ dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!