Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
John McCormick
John McCormick 2015 年 11 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by