Hello,I have a matrix of nrows by 22 each .mat file. I want to take this data from each file and form a single matrix.the nrows in each file changes and the 22 columns remains same.could some one help me in solving this.

 採用された回答

KSSV
KSSV 2021 年 7 月 11 日

0 投票

matFiles = dir('*.mat') ;
N = length(matFiles) ;
iwant = zeros([],22,N) ;
for i = 1:N
load(matFiles(i).name) ;
iwant(:,:,i) = T ; % your matrix here
end

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStructures についてさらに検索

質問済み:

2021 年 7 月 11 日

回答済み:

2021 年 7 月 11 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by