Is there anyway to exceed plotting 8 data sets in a graph?

1 回表示 (過去 30 日間)
theCook
theCook 2014 年 5 月 28 日
コメント済み: theCook 2014 年 5 月 28 日
Let say i have 20 different data sets and i want to plot them in one graph. Is there anyway to exceed 8 sets in a graph?

採用された回答

Mischa Kim
Mischa Kim 2014 年 5 月 28 日
Ozgur, check out
my_col = jet(20);
t = 0:0.1:pi;
a = 1:length(my_col(:,1));
y = a'*sin(t);
hold all
for ii = 1:numel(a)
plot(y(ii,:),'color',my_col(ii,:))
leg{ii} = strcat('data',num2str(ii));
end
legend(leg)
  1 件のコメント
theCook
theCook 2014 年 5 月 28 日
Thank you very much Mischa.
you saved my term project :D

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by