get_fields.m
来自「基于matlab的bayes net toolbox,希望对大家能有些帮助」· M 代码 · 共 14 行
M
14 行
function val = get_params(pot, name)% GET_PARAMS Accessor function for a field (dpot)% val = get_params(pot, name)%% e.g., get_params(pot, 'table') or 'domain'switch name case 'table', val = pot.T; case 'domain', val = pot.domain; otherwise, error(['invalid field name ' name]);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?