numconvertcard.m

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

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

⌨️ 快捷键说明

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