📄 subsref.m
字号:
function theResult = subsref(self, theStruct)% ps/subsref -- Process subscripted references.% subsref(self, theStruct) processes subscripted% references on behalf of self, a "ps" object. % Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.% All Rights Reserved.% Disclosure without explicit written consent from the% copyright owner does not constitute publication. % Version of 09-Dec-1999 01:19:01.% Updated 09-Dec-1999 01:19:01.if nargin < 2, help(mfilename), return, endtheType = theStruct(1).type;theSubs = theStruct(1).subs;if ~iscell(theSubs), theSubs = {theSubs}; endtheStruct(1) = [];switch theTypecase '.' result = psget(self, theSubs{1}); if length(theStruct) > 0 result = subsref(result, theStruct); endotherwiseendtheResult = result;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -