Specific column range from an array?

184 Ansichten (letzte 30 Tage)
ayat
ayat am 5 Apr. 2017
Kommentiert: Nom am 7 Okt. 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?

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by