Is there anyway to exceed plotting 8 data sets in a graph?
1 次查看(过去 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 中查找有关 Bar Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!