Specific column range from an array?

197 vues (au cours des 30 derniers jours)
ayat
ayat le 5 Avr 2017
Commenté : Nom le 7 Oct 2019
This is probably very dumb question but I cant seem to find an answer for it. I have an array with two columns, how to I extract let`s say the second column, from the 5th row until the 10th?

Réponse acceptée

Alexandra Harkai
Alexandra Harkai le 5 Avr 2017
y = x(5:10, 2) % rows 5:10, column 2
  1 commentaire
Nom
Nom le 7 Oct 2019
Thank you so much for actually linking it in the documentation, found exactly what I needed!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing 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