fn_idx2str

Contents

Syntax

str = fn_idx2str(val)

Description

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'

Source

Thomas Deneux

Copyright 2015-2017