Tableデータのフィルタリング
6 views (last 30 days)
Show older comments
DICOMヘッダーをdicominfoにて読み込み、色々やってTableデータにすることができたのですが、このTableデータをフィルタリングして必要とする行とその値だけ表示させたいです。方法をご享受ください。
2 Comments
Accepted Answer
Kojiro Saito
on 15 Sep 2022
ismemberを使って1列目にEchoTimeとInversionTimeがある行を抽出すればできると思います。
% ダミーテーブルの作成
t = table(["Format"; "Modality"; "EchoTime"; "InversionTime"], ...
["DICOM"; "MRI"; 100; 10000])
% 1列目がEchoTimeまたはInversionTimeの行を抽出
idx = ismember(t(:, 1).Variables, ["EchoTime", "InversionTime"]);
t(idx, :)
0 Comments
More Answers (0)
See Also
Categories
Find more on DICOM Format 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!