Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Mary Abdu
Mary Abdu am 26 Dez. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentare
John D'Errico
John D'Errico am 26 Dez. 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 am 26 Dez. 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.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by