reporting: let subsasgn take {} ref

remove-priordens
Houtan Bastani 2014-02-10 16:14:57 +01:00
parent ef6935fe96
commit c862fdfbb7
3 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,9 @@ switch S.type
otherwise
error(['@graph.subsasgn: field ' S.subs 'does not exist']);
end
case '{}'
assert(isint(S.subs{1}));
B{S.subs{1}} = V;
otherwise
error('@graph.subsasgn: syntax error');
end

View File

@ -36,6 +36,9 @@ switch S.type
otherwise
error(['@report_table.subsasgn: field ' S.subs 'does not exist in the report_table class'])
end
case '{}'
assert(isint(S.subs{1}));
B{S.subs{1}} = V;
otherwise
error('@report_table.subsasgn: syntax error')
end

View File

@ -40,6 +40,9 @@ switch S.type
otherwise
error(['@vspace.subsasgn: field ' S.subs 'does not exist']);
end
case '{}'
assert(isint(S.subs{1}));
B{S.subs{1}} = V;
otherwise
error('@vspace.subsasgn: syntax error');
end