how to set legend in matlab

9 views (last 30 days)
Deepu S S
Deepu S S on 23 Sep 2021
Answered: Kishor on 19 Dec 2022
how to set legend in matlab

Accepted Answer

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

More Answers (1)

Kishor
Kishor on 19 Dec 2022
Add a legend to plot using the array starname

Tags

Community Treasure Hunt

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

Start Hunting!