変数の凡例の付け方
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
figure(1)
for j=1:10
loglog(1E3*BigARG{j}(1:1:end),1E9*4*pi*1E-7*BigDANS{j}(1:1:end,6))
xlabel('Time msec');
ylabel('dB/dt');
legend show
hold on;
end
どうやったら変数の場合でも凡例をつけれますか?
今のままだとDATA1 DATA2とかになってしまいます
0 commentaires
Réponses (1)
Akira Agata
le 28 Nov 2020
ご質問の文面より、1つの図 (figure) 内に10個のデータをプロットするとともに凡例もあわせて表示したいと理解しました(間違っていたらご指摘ください)。その場合、以下のようにすれば良いかと思います。
figure
hold on
for j=1:10
loglog(1E3*BigARG{j}(1:1:end),1E9*4*pi*1E-7*BigDANS{j}(1:1:end,6))
end
xlabel('Time msec');
ylabel('dB/dt');
legend({'BitDANS1','BitDANS2',(中略),'BitDANS10'})
0 commentaires
Voir également
Catégories
En savoir plus sur Legend 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!