Functions | |
if (iscell(v)) sep | |
eval (sprintf("%s=val;", field)) | |
!assert (x, y) | |
!test | !oo (1, 1).f0 |
Variables | |
function | obj |
for | i |
for | j |
sep = "," | |
endfor | field = sprintf ("%s)", field) |
endif endfor | val = varargin{nargin-1} |
endfunction!test!x | a = "hello" |
!x = setfield(x,"b","world") | |
!y = struct("a","hello","b","world") | |
!oo = setfield(oo,{1,2},"fd",{3},"b", 6) |
!assert | ( | x | , | |
y | ||||
) |
!test !oo | ( | 1 | , | |
1 | ||||
) |
eval | ( | sprintf("%s=val;", field) | ) |
if | ( | iscell(v) | ) |
!oo = setfield(oo,{1,2},"fd",{3},"b", 6) |
!x = setfield(x,"b","world") |
!y = struct("a","hello","b","world") |
endfunction !test ! x a = "hello" |
sep = "," |