How to plot multiple lines with same legend handle?

8 ビュー (過去 30 日間)
matlabuser
matlabuser 2020 年 4 月 25 日
コメント済み: Ameer Hamza 2020 年 4 月 25 日
Hi, I know this looks like a lot, but it I think this is a simple fix. In the second to last line of code, I have my legend line. In the lines above that, I create the arrays for n, t, and m. As you can see on the right side, they are all arrays of different lines. I need to assign n, t, and m a unique legend name, but I can't right now because they are differently sized arrays. Please help me to somehow merge the lines into one continuous line or some other workaround.
Thanks
  3 件のコメント
matlabuser
matlabuser 2020 年 4 月 25 日
Thank you sooooooo much. You have no idea. They are moment diagrams, so there are mutiple segments with different equations that I couldn't make one line. Now they are wink wink
Ameer Hamza
Ameer Hamza 2020 年 4 月 25 日
I am glad to be of help.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by