Info

This question is closed. Reopen it to edit or answer.

could any one help me with understanding this code please where w and b are matrices

1 view (last 30 days)
N=3;
w1=[w(1:N);w(N+1:2*N)]';
b1=w(2*N+1:3*N)';
w2=w(3*N:4*N+1);
b2=w(end);
  4 Comments
John D'Errico
John D'Errico on 26 Dec 2018
Out of context, totally uncommented code is just a bunch of characters. It has no "meaning" without that context. So ask the person who wrote the code.
Walter Roberson
Walter Roberson on 26 Dec 2018
If N=8 then you could get most sizes you list but w2 will always have more elements than the others so it is not possible to use a single N with that code to get the sizes you are looking for.

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!