how to add legends?

 採用された回答

M
M 2012 年 3 月 29 日

1 投票

You can also use the following:
hold on %after the first plot to continue plotting on the same figure
legend on
% or legend('plot1','plot2','plot3');

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2012 年 3 月 29 日

0 投票

doc subplot
doc legend

1 件のコメント

Eric
Eric 2012 年 3 月 29 日
Perhaps also "doc hold"

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

カテゴリ

タグ

質問済み:

2012 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by