matlab二維數(shù)組的創(chuàng)建及其變換?
A = rand(81,81,81);n = 20;A1 = A(:,:,n); % 81*81 二維A2 = A(:,n,:); % 81*1*81 三維A3 = A(n,:,:); % 1*81*81 三維% 將三維轉(zhuǎn)為 81*81 二維A22 = reshape(A2,81,81);A32 = reshape(A3,81,81);
matlab二維數(shù)組的創(chuàng)建及其變換?
A = rand(81,81,81);n = 20;A1 = A(:,:,n); % 81*81 二維A2 = A(:,n,:); % 81*1*81 三維A3 = A(n,:,:); % 1*81*81 三維% 將三維轉(zhuǎn)為 81*81 二維A22 = reshape(A2,81,81);A32 = reshape(A3,81,81);