まずはテーブルを読み込みます
日本語対応にするためにオプションを設定します
Tableデータ名に日本語が含まれている場合の処理 を参考にしました
A = readtable('Sample.xlsx','PreserveVariableNames',true)
id = unique(A.("商品ID"))
ここで A1 に id の一番目( id = 1)に該当するtableを抽出します
A1 = A(A.("商品ID") == id(1),:)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!