kronecker product by number of iteration
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Akmyrat
el 7 de Jul. de 2014
Comentada: Geoff Hayes
el 9 de Jul. de 2014
lets say A=[1 2;3 4], i want for i=1:5 times, to multiply A itself kronecker product. in this case ,manual will be kron(kron(kron(kron(kron(A,A),A),A),A),A)
0 comentarios
Respuesta aceptada
Geoff Hayes
el 8 de Jul. de 2014
Unless you are looking for a way to do this in one line of code, a simple for loop would do the trick
A = [1 2;3 4];
B = A;
for k=1:5
B = kron(B,A);
end
4 comentarios
Geoff Hayes
el 9 de Jul. de 2014
Akymrat - Please format the above code so that it is readable. Highlight the code and press the {}Code button.
There is a bug in the code with the
else
B==2;
R=F2
end
I suspect you meant
elseif B==2
Please make the correction and address the case where B is neither 1 nor 2.
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!