function value = subv_get(vv, subscript_vector) %SUBV_GET return value in an ND-array given by a vector position % % value = subv_get(vector, subscript_vector) % % To get more than one value use linear indexes from subv2ind % Iain Murray, July 2008 subscripts = num2cell(subscript_vector); value = vv(subscripts{:});