view arrows/set_subcell.m @ 2:7357e1dc2ad6

Simplified scheduler library with new schedule representation.
author samer
date Sat, 22 Dec 2012 16:17:51 +0000
parents 672052bd81f8
children
line wrap: on
line source
% 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