Is there anyway to exceed plotting 8 data sets in a graph?
조회 수: 4 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
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)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!