Lots of minor edits to suppress matlab code analyzer messages. Functional changes coming in separate commits.
vec.m: rewrite to use numel() instead of m*n.