フィルターのクリア

indexing to a new table

2 ビュー (過去 30 日間)
Ketan Bharucha
Ketan Bharucha 2017 年 9 月 12 日
回答済み: Walter Roberson 2017 年 9 月 12 日
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

採用された回答

Walter Roberson
Walter Roberson 2017 年 9 月 12 日
newData = YourData;
mask = ismember(newData(:,2), [276, 277]);
Data27x = newData(mask, :);
newData(mask, :) = [];

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by