i had tried s2.^4*12540, it works but now i am taking the square root of this but error occurred that Matrix must be square. what should i do now?
i had matrix s of size 4*12540, i want to take power of this matrix raise to 4*12540,how should i do it?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
amina mehmood
el 31 de Mzo. de 2014
Comentada: amina mehmood
el 31 de Mzo. de 2014
i had matrix s of size 4*12540, i want to take power of this matrix raise to 4*12540,how should i do it?
2 comentarios
Respuesta aceptada
Mischa Kim
el 31 de Mzo. de 2014
Amina, I am not sure I can follow. In general, if you need to take the nth power simply use
n = 3;
s3 = s.^n;
or
s3 = s.^3;
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!