title: How can I apply a function to every row/column of a matrix in MATLAB?
body: <p>You can apply a function to every item in a vector by saying, for example, <code>v + 1</code>, or you can use the function <code>arrayfun</code>. How can I do it for every row/column of a matrix without using a for loop?</p>