csvファイルを全て読み込み、配列を合わせる
Show older comments
例えばカレントディレクトリ内に3つのcsvファイルA.csv、B.csv、C.csvがあり、
A = [1 2 3]、B=[2 4 6 8 10]、C=[1 3 5 7 9 11]等のようにそれぞれ違う配列数のデータがあるとします。(行数は同じだが、列数が異なる)
これら全てを読み込み、なおかつ
A = [1 2 3]、B=[2 4 6 ]、C=[1 3 5 ]のように要素数を最小のものに合わせる様にはどのようにすればよろしいでしょうか?よろしくお願いいたします。
Accepted Answer
More Answers (1)
Ochi Kai
on 2 Sep 2022
0 votes
Categories
Find more on Logical 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!