Reputation: 1220
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
Upvotes: 1
Views: 1007
Reputation: 74940
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 pass reshape(A(:,:,i),[],1)
. Then you reshape the output into a 10x10 array by using B = reshape(outputOfNNtool,10,10)
.
Upvotes: 1