How to plot a matrix neglecting first two points?

1 vue (au cours des 30 derniers jours)
Sajith Galgamuwa
Sajith Galgamuwa le 20 Avr 2016
Modifié(e) : J. Webster le 20 Avr 2016
provided matrix
x 1 2 3 4 5 6 7
y 10 15 11 7 8 9 20
it is only needed to plot
x 3 4 5 6 7
y 11 7 8 9 20

Réponse acceptée

J. Webster
J. Webster le 20 Avr 2016
plot(x(3:end), y(3:end))
  2 commentaires
Sajith Galgamuwa
Sajith Galgamuwa le 20 Avr 2016
Modifié(e) : Sajith Galgamuwa le 20 Avr 2016
plot(Xhsaved(1,:), Xhsaved(2,:), 'bs') ;
I have to alter this..help
J. Webster
J. Webster le 20 Avr 2016
Modifié(e) : J. Webster le 20 Avr 2016
plot(Xhsaved(1,3:end), Xhsaved(2,3:end), 'bs')
you can learn all you need about matrix indexing here... http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by