function r=columns(m) Note: octave already has this function, this is here only for matlab compatibility