hi, I need to combine 100 matrices horizontally using horzcat. I have a matrix named 'data' of size 20*30*100 in which 100 represents number of data granules for a day. I want to do the following: data_all = horzcat(data(:, :, 1), data(:, :, 2), data(:, :, 3) ................... upto 100). I want to do this in a loop since it is tedious to write all matrices from 1 to 100. Could you please suggest a quick way?
1 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/350569-using-horzcat-in-a-loop-for-combining-large-number-of-files#comment_472491
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/350569-using-horzcat-in-a-loop-for-combining-large-number-of-files#comment_472491
サインインしてコメントする。