How to calculate a kernel in matlab

조회 수: 196 (최근 30일)
Jorge Tirado
Jorge Tirado 2018년 5월 8일
편집: AYOUB 2022년 10월 28일
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
Jorge Tirado
Jorge Tirado 2018년 5월 9일
OK I edit the description thanks
AYOUB
AYOUB 2022년 10월 28일
편집: AYOUB 2022년 10월 28일
Use this
null(A,'r')
Result:
1 2
-2 -3
1 0
0 1

댓글을 달려면 로그인하십시오.

답변 (2개)

OM
OM 2019년 7월 20일
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 2018년 5월 9일
Quick web searching (despite utter ignorance on my part) suggests that you might want
rref(A)
rather than
null(A)
  댓글 수: 2
Jorge Tirado
Jorge Tirado 2018년 5월 9일
But how I can obtain the Ker ?
Limanan Nursalim
Limanan Nursalim 2021년 6월 16일
Kernel/nullspace is obtained by using the
null(A)
as written.
To find the image/range, you can use
rref(A')

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by