Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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 个评论
John D'Errico
John D'Errico 2018-12-26
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 2018-12-26
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.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by