Help me about matrix in Matlab ?
Mostrar comentarios más antiguos
Give a square matrix A. For k is positive integer. Find k that A^k = 0. (I'm Vietnamese, I don't know How to call k in English). Could you please help me write the code to find k.
Thanks you very much.
4 comentarios
Roger Stafford
el 30 de Dic. de 2013
Editada: Roger Stafford
el 30 de Dic. de 2013
If A is a non-singular square matrix - that is, if it possesses an inverse - then no finite value of k can ever satisfy your condition. You seem to have posed an impossible problem. Are you sure this is what you meant to ask?
Nguyen Trong Nhan
el 30 de Dic. de 2013
Editada: Nguyen Trong Nhan
el 30 de Dic. de 2013
Image Analyst
el 30 de Dic. de 2013
You said "Give a square matrix A". Well how about if I give you an A that is all zeros?
Walter Roberson
el 30 de Dic. de 2013
Roger, it can happen in floating point arithmetic, though not algebraically. For example,
diag(rand(1,5))
raised to a large enough power will underflow to all 0's.
For example,
A = diag([0.757740130578333, 0.743132468124916, 0.392227019534168, 0.655477890177557, 0.171186687811562]);
is last non-zero at A^2685
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!