% set_subcell - replace subnode of cell based tree structure
function A=set_subcell(A,Path,Val)
	if isempty(Path), A=Val;
	else
		A{Path(1)} = set_subcell(A{Path(1)},Path(2:end),Val);
	end
end
