set.m

来自「Nonlinear dynamical factor analysis Matl」· M 代码 · 共 30 行

M
30
字号
function a = set(a, prop_name, val)% SET set the value of given property%% Probdist_alpha internal, should not be used.% Copyright (C) 2002 Harri Valpola and Antti Honkela.%% This package comes with ABSOLUTELY NO WARRANTY; for details% see License.txt in the program package.  This is free software,% and you are welcome to redistribute it under certain conditions;% see License.txt for details.switch prop_name case 'E'  a.probdist = set(a.probdist, 'E', val); case 'Var'  a.probdist = set(a.probdist, 'Var', val); case 'Malpha'  a.malpha = val; case 'Valpha'  a.valpha = val; case 'Msign'  a.msign = val; case 'Vsign'  a.vsign = val; otherwise  error('Bad property.')end

⌨️ 快捷键说明

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