set_fields.m

来自「用matlab实现贝叶斯网络的学习、推理。」· M 代码 · 共 14 行

M
14
字号
function K = set_params_kernel(K, name, val)% SET_PARAMS_KERNEL Accessor function for a field (table_kernel)% K = set_params_kernel(K, name, val)%% e.g., K = set_params_kernel(K, 'table', rand(2,3,2)) for a kernel on 3 nodes with 2,3,2 values each% We should check if the arguments are valid...switch name case 'table', K.table = val; otherwise,  error(['invalid field name ' name]);end

⌨️ 快捷键说明

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