How to extract data from a particular column of matrix?

1 view (last 30 days)
Amit Bhetiwal
Amit Bhetiwal on 27 Dec 2021
Commented: Amit Bhetiwal on 27 Dec 2021
Lets say X= A(:, 6) and from 6th column I want to extract data, Y=X(20:3500). How to get Y in single line code?

Answers (1)

DGM
DGM on 27 Dec 2021
Something like this should work:
Y = A(20:3500,6);

Community Treasure Hunt

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

Start Hunting!