How to calculate a kernel in matlab

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 commentaires

KSSV
KSSV le 8 Mai 2018
Can you elaborate your question? Do you think the people who answer will go through the complete video and get solution for you? You explain your problem in brief, you will get your solution soon...:)
Jorge Tirado
Jorge Tirado le 9 Mai 2018
OK I edit the description thanks
AYOUB
AYOUB le 28 Oct 2022
Modifié(e) : AYOUB le 28 Oct 2022
Use this
null(A,'r')
Result:
1 2
-2 -3
1 0
0 1

Connectez-vous pour commenter.

Réponses (2)

OM
OM le 20 Juil 2019

3 votes

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.
the cyclist
the cyclist le 9 Mai 2018
Quick web searching (despite utter ignorance on my part) suggests that you might want
rref(A)
rather than
null(A)

2 commentaires

Jorge Tirado
Jorge Tirado le 9 Mai 2018
But how I can obtain the Ker ?
Kernel/nullspace is obtained by using the
null(A)
as written.
To find the image/range, you can use
rref(A')

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange

Tags

Modifié(e) :

le 28 Oct 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by