作者:
hnuuy (tintato)
2015-03-26 02:10:06請教各位大大
若 data <12x40x43700 double>
要如何轉成二維的資料且是從橫的開始排呢?
變成這樣
temp <43700x480 double>
有試過reshape 不過他是從直的開始排
以下是我使用的方式
temp = reshape(data,43700,480);
請問應該要使用什麼指令呢?
謝謝
作者:
sunev (Veritas)
2015-03-26 20:04:00permute 是transpose的推廣,在你的情況下可以寫成temp=reshape(permute(data,[3 1 2]),43700,[]);或是temp=premute(reshape(data,480,[]),[2 1]);