エクセルのcsvファイルにおいて、同列内の12行おきにデータを分ける方法
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens

上図のエクセルのcsvファイルに、13種類の商品IDのデータが入っているのですが、それぞれの商品IDごとにデータを分けたいのですが、やり方がわからないので教えていただいきたいです。よろしくおねがいします。
0 commentaires
Réponse acceptée
Hernia Baby
le 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),:)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur スプレッドシート dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!