In GNU Octave version 3.4.3, I am having trouble applying a custom function to operate on each item/element in a matrix.
I have a (2,3) matrix that looks like:
mymatrix = [1,2,3;4,5,6];
mymatrix
1 2 3
4 5 6
I want to use each element of the matrix as an input, and run a custom function against it, and have the output of the function replace the content of mymatrix item by item.