# Weight and Bias from a Neural Network

37 views (last 30 days)

Show older comments

massimiliano de martino
on 6 Apr 2018

Commented: KAE
on 9 Oct 2018

##### 0 Comments

### Accepted Answer

Brendan Hamm
on 6 Apr 2018

I'm not sure why you would get a 0x1 empty double column vector. You may need to post some code to help figure this piece out.

You can also try simply indexing the weights from the network:

IW = net.IW; % Cell containing the Input Weights

b1 = net.b; % Cell containing the biases

LW = net.LW; % Cell containing the layer weights

Note, many elements of the cell will likely be empty (excepting the bias weights), but you will have matrices of the weights in the non-empty cells.

##### 0 Comments

### More Answers (1)

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!