How to calculate a kernel in matlab
220 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Im trying to replicate this matrix in MATLAB but I don't receive the same solution
EDIT :
I have this matrix.
A = [1 1 1 1;1 2 3 4; 4 3 2 1]
According to the video the kernel of this matrix is:
A = [1 -2 1 0] B= [2 -3 0 1]
but in MATLAB I receive a different result
null(A)
ans =
0.0236 0.5472
-0.4393 -0.7120
0.8079 -0.2176
-0.3921 0.3824
I'm doing something wrong?
3 comentarios
Respuestas (2)
OM
el 20 de Jul. de 2019
Jorge, you should probably execute as follows: null(A, 'r')
MATLAB is giving you an orthonormal basis and what you are looking for is sometimes called a "rational" basis.
0 comentarios
the cyclist
el 9 de Mayo de 2018
Quick web searching (despite utter ignorance on my part) suggests that you might want
rref(A)
rather than
null(A)
2 comentarios
Limanan Nursalim
el 16 de Jun. de 2021
Kernel/nullspace is obtained by using the
null(A)
as written.
To find the image/range, you can use
rref(A')
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!