How to skip data point by plotting in 2D-curves surf-curve?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I would like to know how to skip data points by plotting 2d-curves?
For example, let:
x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y);
What should I write if I want to display only every n-ten data point?
Thank you in advance Emerson
0 commentaires
Réponse acceptée
Fangjun Jiang
le 19 Oct 2011
x = 0:pi/100:2*pi;
y = sin(x);
M=numel(x);
n=7;
index=1:n:M
plot(x(index),y(index));
2 commentaires
Fangjun Jiang
le 20 Oct 2011
It is not available.
http://www.mathworks.com/support/solutions/en/data/1-15B707/index.html?solution=1-15B707
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing 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!