how to set legend in matlab

10 visualizzazioni (ultimi 30 giorni)
Deepu S S
Deepu S S il 23 Set 2021
Risposto: Kishor il 19 Dic 2022
how to set legend in matlab

Risposta accettata

KSSV
KSSV il 23 Set 2021
% Auto
A = rand(10,2) ;
plot(A)
legend
% Manually
plot(A)
legend('first','second')

Più risposte (1)

Kishor
Kishor il 19 Dic 2022
Add a legend to plot using the array starname

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by