franks_max_marginalize_pot.m

来自「The BNL toolbox is a set of Matlab funct」· M 代码 · 共 10 行

M
10
字号
function marg_pot=franks_max_marginalize_pot(table,over,dimsizes)
%mymarginalize_pot marginalizes table over the dimensions in over
max_marg_pot=table;

for i=over
     max_marg_pot=max(max_marg_pot,[],i);
    
end
marg_pot=squeeze(max_marg_pot); %remove all dimensions of size 1
max_marg_pot=reshape(max_marg_pot,dimsizes);%put back relevant dimensions of size 1

⌨️ 快捷键说明

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