How to create multiple cdfplot in one graph?

1 回表示 (過去 30 日間)
Yaser Khojah
Yaser Khojah 2019 年 9 月 4 日
コメント済み: Yaser Khojah 2019 年 9 月 4 日
I have tried to create a multiple cdfplot in one graph as below but I need an efficient way since I'm using this in a big matrix and would you please show how to include the legend as well please.
figure
for ki = 1:size(NPV_all,2)
cdfplot(NPV_all(:,ki)); hold on
end

採用された回答

KSSV
KSSV 2019 年 9 月 4 日
figure
hold on
lgd = cell(size(NPV_all,2),1) ;
for ki = 1:size(NPV_all,2)
cdfplot(NPV_all(:,ki));
lgd{ki} = strcat('column=',num2str(ki)) ;
end
legend(lgd)
  1 件のコメント
Yaser Khojah
Yaser Khojah 2019 年 9 月 4 日
Thanks a lot for you help :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBiological and Health Sciences についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by