MATLAB: How can i provide one input vector to some neurons in the hidden layer and another input vector to some other neurons of the same hidden layer in matlab

Deep Learning Toolboxneural networks

I want to create a neural network with 2 input vectors.I am using 2 layer neural network with 10 neurons in the hidden layer. But the problem is i have to provide 1st input vector to 1st 5 neurons of the hidden layer and 2nd input vector to next 5 neurons of the same hidden layer. I searched all the properties of the neural network but none solved my problem. Please help me out with this.

Best Answer

WHOOPS!. At one time when weights were initialized at EXACTLY zero, they would not be updated. Now I don't recall if was MATLAB's code that was changed or it was one of my personal codes.
Regardless, it doesn't work here and I apologize for the bum steer.
What you have to do is to eliminate the connections entirely instead of setting the initial weights to zero. That is explained in the documentation under the name "Custom Networks".