str = fn_idx2str(val)
Converts a vector of indices into a string in a 'smart' way.
Example: fn_idx2str([1 2 3 4 6 8 10 15]) returns '1:4 6:2:10 15'
Thomas Deneux
Copyright 2015-2017
Published with MATLAB® R2015a