フィルターのクリア

How to show results for curves in a graph?

3 ビュー (過去 30 日間)
Mr. 206
Mr. 206 2019 年 2 月 5 日
コメント済み: KSSV 2019 年 2 月 5 日
I have a graph with 5 curves. I have certain results for each curve. How can i print them in the graph just like legend?
  2 件のコメント
madhan ravi
madhan ravi 2019 年 2 月 5 日
Not sure what you mean by print but see subplot().
Mr. 206
Mr. 206 2019 年 2 月 5 日
編集済み: Mr. 206 2019 年 2 月 5 日
For example, If i calculate Sum of Squared error for five curves, i want to see the values in the graph.

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

採用された回答

KSSV
KSSV 2019 年 2 月 5 日
A = rand(3,10) ;
M = mean(A,2) ;
plot(A')
str = cell(3,1) ;
for i = 1:3
str{i} = strcat('mean=',num2str(A(i))) ;
end
legend(str)
  2 件のコメント
Mr. 206
Mr. 206 2019 年 2 月 5 日
Great!
How can i put "M1", "M2", "M3"...... istead of "mean"?
KSSV
KSSV 2019 年 2 月 5 日
str = cell(3,1) ;
for i = 1:3
str{i} = strcat('M',num2str((i))) ;
end

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by