エクセルのcsvファイルにおいて、同列内の12行おきにデータを分ける方法
6 views (last 30 days)
Show older comments
上図のエクセルのcsvファイルに、13種類の商品IDのデータが入っているのですが、それぞれの商品IDごとにデータを分けたいのですが、やり方がわからないので教えていただいきたいです。よろしくおねがいします。
0 Comments
Accepted Answer
Hernia Baby
on 10 Sep 2021
まずはテーブルを読み込みます
日本語対応にするためにオプションを設定します
Tableデータ名に日本語が含まれている場合の処理 を参考にしました
A = readtable('Sample.xlsx','PreserveVariableNames',true)
id = unique(A.("商品ID"))
ここで A1 に id の一番目( id = 1)に該当するtableを抽出します
A1 = A(A.("商品ID") == id(1),:)
More Answers (0)
See Also
Categories
Find more on スプレッドシート 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!