indexing to a new table
3 views (last 30 days)
Show older comments
Ketan Bharucha
on 12 Sep 2017
Answered: Walter Roberson
on 12 Sep 2017
I havae a table to with multiple IDs (277,276....). I want to basically pull out ID 277 and 276 to a separate table. How can I do that?
1 277
2 276
3 277
4 276
5 278
6 276
7 279
8 280
9 61446
10 61446
11 61446
12 300
13 61446
0 Comments
Accepted Answer
Walter Roberson
on 12 Sep 2017
newData = YourData;
mask = ismember(newData(:,2), [276, 277]);
Data27x = newData(mask, :);
newData(mask, :) = [];
0 Comments
More Answers (0)
See Also
Categories
Find more on LaTeX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!