eliminate the nullspace of a matrix

조회 수: 13 (최근 30일)
Ano
Ano 2017년 8월 7일
댓글: Zoltán Csáti 2018년 8월 20일
Hello, how can I eliminate the nullspace of a square matrix using Matlab? Thank you!
  댓글 수: 2
John D'Errico
John D'Errico 2017년 8월 7일
Sorry, but eliminating the nullspace of a matrix has no meaning, just some jargon that you have made up. Define carefully what you want to do. Only you know that.
A matrix has a nullspace. That null space may be empty or not. But you cannot "eliminate" it. So what do you want to do?
Torsten
Torsten 2017년 8월 7일
If you want a basis of the row space of A, use orth(A.').
The rule is that
null(A) + orth(A.') = R^n
where n is the dimension of your matrix.
Best wishes
Torsten.

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2017년 8월 7일
If you have any matrix, square or not, you have only one possibility: remove entire rows or columns that are equal to zero
Example
A=[1 2 3 0;0 0 0 0;1 4 5 0 ;2 7 8 0]
ix=~any(A,1)
A(:,ix)=[]
iy=~any(A,2)
A(iy,:)=[]
  댓글 수: 1
Zoltán Csáti
Zoltán Csáti 2018년 8월 20일
Non-empty null space is possible without having zero rows/columns.

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

추가 답변 (0개)

카테고리

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