How to train a Matlab Neural Network using matrices as inputs?

I am making 8 x 8 tiles of Images and I want to train a RBF Neural Network in Matlab using those tiles as inputs. I understand that I can convert the matrix into a vector and use it. But is there a way to train them as matrices? (to preserve the locality) Or is there any other technique to solve this problem?

1 Comment

in MATLAB, if you write y=1.. is also a MATRIX.. you can also train them as matrices

Sign in to comment.

 Accepted Answer

Standard procedure:
Each input and output must be a column vector. If your original input is an image, just use the column operator x = image(:). However, if you wish to consider several images, each image will be a column in the network's input matrix.
No biggie
Hope this helps.
Thank you for formally accepting my answer
Greg

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!