I want a table that has all values that their cell_type is 4 and get rid of those row that their cell_type is not 4.
Any suggestion?Capture.JPG

 採用された回答

Daniel M
Daniel M 2019 年 10 月 4 日

0 投票

T(T.cell_type~=4,:) = [];
% where T is the name of your table

1 件のコメント

Daniel M
Daniel M 2019 年 10 月 4 日
If you want to keep the original table and make a new table only containing rows with cell_type 4, it is trivial.
T2 = T(T.cell_type==4,:);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Tables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by