Assuming you want to collect 10 input matrices each having a dimension of 784x1, you can initialize an array of size 784x10 and store each input matrix in a separate column of the array. Here is the code that achieves this:
main.m326 chars12 lines
You can modify the prompt message inside the input
function to suit your needs.
gistlibby LogSnag