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

1 vue (au cours des 30 derniers jours)
Brasco , D.
Brasco , D. le 28 Mai 2014
Commenté : Brasco , D. le 28 Mai 2014
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?

Réponse acceptée

Mischa Kim
Mischa Kim le 28 Mai 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)
  1 commentaire
Brasco , D.
Brasco , D. le 28 Mai 2014
Thank you very much Mischa.
you saved my term project :D

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by