Assuming that the matrix contains integers or floating point numbers, the following function will loop through each element of the matrix, extract each digit from the element and display it:
main.m859 chars31 lines
To use this function, simply supply a matrix to it, like so:
main.m61 chars3 lines
This will output each digit from each element in my_matrix
line by line.
gistlibby LogSnag