get.m

来自「Passino所提出的细菌优化算法matlab源程序」· M 代码 · 共 11 行

M
11
字号
function val = get(frogp,prop_name)
% GET Get asset properties from the specified object
% and return the value
switch prop_name
case 'ID'
    val = frogp.ID;
case 'angle'
    val = frogp.angle;
otherwise
    error([prop_name,' Is not a valid frogp property'])
end

⌨️ 快捷键说明

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