📄 subsasgn.m
字号:
function a = subsasgn(a,index,val)
% SUBSASGN Define index assignment for asset objects
switch index.type
case '()'
switch index.subs{:}
case 1
a.descriptor = val;
case 2
a.date = val;
case 3
a.currentValue = val;
otherwise
error('Index out of ');
end
case '.'
switch index.subs
case 'descriptor'
a.descriptor = val;
case 'date'
a.date = val;
case 'currentValue'
a.currentValue = val;
otherwise
error('Invalid field name')
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -