?? subsasgn.m
字號(hào):
function p = subsasgn(p,index,val)
% SUBSASGN Define index assignment for agent objects
switch index.type
case '()'
switch index.subs{:}
case 1
p.ID = val;
case 2
p.angle = val;
otherwise
error('Index out of range')
end
case '.'
switch index.subs
case 'ID'
p.ID = val;
case 'angle'
p.angle = val;
otherwise
error('Invalid field name')
end
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -