フィルターのクリア

legend

2 ビュー (過去 30 日間)
Bahareh
Bahareh 2011 年 10 月 22 日
I have a matrix m which varies with vectors a and b. I've plotted m versus a for different values of b, but I don't know how to set the legend command corresponding different values for b. I will be so grateful if somebody can help me.

採用された回答

Mitch Martelli
Mitch Martelli 2011 年 10 月 22 日
Try
  • if b is a numerical vector with:
legend(num2str(b(:)))
  • If b is a string vector :
legend(b)
  2 件のコメント
Jan
Jan 2011 年 10 月 22 日
What is a "string vector"?
Mitch Martelli
Mitch Martelli 2011 年 10 月 23 日
I cant write english very well... I'm sorry...I dont find an other way to explain what I think...

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by