Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can I add an automatic legend to a graph with 10+ lines?

1 Ansicht (letzte 30 Tage)
John McCormick
John McCormick am 18 Nov. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I'm trying to generate a graph that has potentially 50 lines on it. In terms of formatting, I only know of the command "legend('Title 1''Title 2'....'Title n'). Given the number of lines I need to plot, I was wondering if there was a way to generate these titles automatically so if I increase the number of lines I don't have to manually add more titles in the legend.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by