please explain the code:
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
for k = 1:V
ind = find(F(:,k)==1);
for m = 1:M
Q(m,k) = Ap+Igv(ind(1),k,m)+Igv(ind(2),k,m);
end
where Ap= log(1/M); M=4
Igv= Ap* ones(K,V,M); K=4,V=6,M=4
8 comentarios
John D'Errico
el 21 de Oct. de 2018
Explain what? Uncommented code that just does some arbitrary computations is virtually impossible to explain. It does what it does. Does it even do what it was intended to do with no bugs? Who knows?
Sajid Sarwar
el 22 de Oct. de 2018
Rik
el 22 de Oct. de 2018
I tried to format your code properly, but it is not even valid Matlab syntax like this.
Sajid Sarwar
el 22 de Oct. de 2018
Jan
el 22 de Oct. de 2018
@Sajid: Fine. Now what exactly is the detail, which is not clear to you? Do you need an explanation of a for loop?
Sajid Sarwar
el 22 de Oct. de 2018
Sajid Sarwar
el 24 de Oct. de 2018
Jan
el 24 de Oct. de 2018
@Sajid Sarwar: I count 21 FOR loops. It would be some work to explain the meaning of them all without knowing, if you even know what a FOR loop does. Please ask more specifically.
Respuestas (0)
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!