Navigation

Operators and Keywords

Function List:

C++ API

setfield.m File Reference


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)

Function Documentation

!assert ( ,
 
)

!test !oo ( ,
 
)

eval ( sprintf("%s=val;", field)   ) 

if ( iscell(v)   ) 


Variable Documentation

!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"

else field = sprintf ("%s)", field)

for i

Initial value:

 1:nargin-2
     v = varargin{i}

for j

Initial value:

 1:length (v)
         field = sprintf ("%s%s%s", field, sep, num2str (v{j}))

Initial value:

 setfield (obj, varargin)
   field = "obj"

sep = ","

endif endfor val = varargin{nargin-1}