7 pathParts=regexp(path,
'([^\.]*)',
'match');
8 pathParts=pathParts(2:end);
9 % nParts=length(pathParts);
12 % smallPath=[smallPath
'.' pathParts{iPart}];
14 % eval([
'structB' smallPath
'=value;']);
15 structB=setfield(structB, pathParts{:},value);
function structapplypath(in structB, in path, in value)
STRUCTAPPLYPATH for given a path '.a.b.c.d.' and a value and a structB, returns modified structB...