変数の凡例の付け方
20 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Akira Agata
el 28 de Nov. de 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 comentarios
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!