How can I use legend function to in multi columns?

Hi, I need to plot figure that contains may lines each line represents different name how can I show these names using legend ?

1 Comment

if you need help with legend, on your command line, type,
help legend

Sign in to comment.

Answers (1)

2 Comments

Iam not need number of line . I need to print name like Ca, Fe, Ag, Co2 . How can I replace the numbers with letters?
What code did you try? If you want multiple columns in your legend, the link I gave you should help. If you want something different, you will need to explain it.
Have a read here and here. It will greatly improve your chances of getting an answer.

Sign in to comment.

Tags

Asked:

on 7 Dec 2017

Commented:

Rik
on 8 Dec 2017

Community Treasure Hunt

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

Start Hunting!