indexconvertcard.m

来自「UMDA. a kind of estimation of distributi」· M 代码 · 共 10 行

M
10
字号
function [num] = IndexconvertCard(valindex,length,AccCard)% This function converts the index valindex to the vector of variables num, where the accumulative cardinality of each variable is in AccCard,% AccCard is the product of cardinalities of previous  variables, where the first variable is  the one to left. aux = valindex; for i=1:length   remainder = rem(aux, AccCard(i));   num(i)= (aux - remainder) / AccCard(i);   aux = remainder; end

⌨️ 快捷键说明

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