sum3.sci

来自「toolbox median filter You need to down」· SCI 代码 · 共 13 行

SCI
13
字号
function M = sum3(M,k)

// sum3 - sum along dimension 3
//
//  Apparently there is a strange bug with the windows version of scilab.
//
//  Gabriel Peyre (c) 2008

n = size(M,1); p = size(M,2); q = size(M,3);
M = reshape(M, [n*p, q]);
M = reshape( sum(M',1)', [n, p] );

endfunction

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?