Command line matrix manipulations