I have a matrix of an image. I want to scale the x axis of the matrix by keeping y the same. (Like stretch the image only in X keeping Y the same). I'm thinking of using the aspect ratio (X/Y). But by multiplying the whole matrix by the aspect ratio doesn't give the result I want. Is there a way to do this.
is the second syntax given in the documentation. If you pass in a numrows the same as the current size of A then this will remain unchanged in B, while the number of columns can change independently of this.