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

4 views (last 30 days)
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?

Accepted Answer

Mischa Kim
Mischa Kim on 28 May 2014
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)

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!