function I = ranges_to_indices(R)

I = [];
for i=1:length(R)
	I = [ I R{i} ];
end
