MATLAB Answers

Specific column range from an array?

263 views (last 30 days)
ayat
ayat on 5 Apr 2017
Commented: Nommah on 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?

  0 Comments

Sign in to comment.

Accepted Answer

Alexandra Harkai
Alexandra Harkai on 5 Apr 2017
y = x(5:10, 2) % rows 5:10, column 2

  1 Comment

Nommah
Nommah on 7 Oct 2019
Thank you so much for actually linking it in the documentation, found exactly what I needed!

Sign in to comment.

More Answers (0)

Sign in to answer this question.