エクセルの複数のシートから順番にreadtableで読み込んだtableにインデックス番号をつけるには?
Afficher commentaires plus anciens
エクセルの複数のシートから順番にreadtableで読み込んだtableにインデックス番号をつけ、後からインデックス番号でtableを読み出すにはどうしたらよいでしょうか?
tableにインデックス番号はつけられないとは思いますが、何か良い方法はないでしょうか?
例えば各シートのA列をx,B列をyとして読み込み、後からグラフに表示するようなイメージです。
コードのイメージは以下のとおりですがデータは他の処理にも使うため1つのforループに組み込むことは出来ません。
for i=1:n
data(i)=readtable(fileName,Sheet=i)
end
for i=1:n
x=data(i).x;
y=data(i).y;
plot(x,y)
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Import from MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!