franks_marginalize_pot.m

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

M
8
字号
function marg_pot=franks_marginalize_pot(table,over,dimsizes)
%mymarginalize_pot marginalizes table over the dimensions in over
marg_pot=table;
for i=over
     marg_pot=sum(marg_pot,i);
end
marg_pot=squeeze(marg_pot); %remove all dimensions of size 1
marg_pot=reshape(marg_pot,dimsizes);%put back relevant dimensions of size 1

⌨️ 快捷键说明

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