I’m wondering if it’s possible for Neural Network to operate on matrices say I want to:
A(i)=matrix(10,10) -> B(i)=matrix(10,10)
input = vector of matrices, i = sample size
output = vector of matrices
Say I would like to guess an matrix operation transforming matrix into another matrix ie
f(A(i,j))=2*A(i,j)*b
Matlab does not take arrays with dimension >2 in NNtool
Any idea?
Thanks
You can simply convert the arrays into vectors before passing them to NNtool. It won’t make a difference for the result of your calculation.
In other words, instead of passing
A(:,:,i)to NNtool, you passreshape(A(:,:,i),[],1). Then you reshape the output into a 10×10 array by usingB = reshape(outputOfNNtool,10,10).