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

조회 수: 4 (최근 30일)
theShield
theShield 2014년 5월 28일
댓글: theShield 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
theShield
theShield 2014년 5월 28일
Thank you very much Mischa.
you saved my term project :D

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by