getting a specific column from a table, Part 2

1 view (last 30 days)
tells
T{:,1}
as a way to specify the first column. Now suppose I want to specify 3rd to 35 th column and 37 th column. How will it work?

Accepted Answer

Star Strider
Star Strider on 14 Dec 2020
Try this:
cols = T{:,[3:35 37]};
.
  1 Comment
alpedhuez
alpedhuez on 14 Dec 2020
https://www.mathworks.com/matlabcentral/answers/21030-how-to-specifically-select-columns-in-a-data-matrix

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!