11 lines
240 B
Matlab
11 lines
240 B
Matlab
function b = subsref(s,index)
|
|
% SUBSREF -
|
|
switch index.type
|
|
case '()'
|
|
b = s.domains(index.subs{:});
|
|
case '.'
|
|
n = domainIndex(s, index.subs);
|
|
b = s.domains(n);
|
|
otherwise
|
|
error('syntax error');
|
|
end
|