필터 지우기
필터 지우기

How can i create n-linearly independent vectors?

조회 수: 19 (최근 30일)
Subham Burnwal
Subham Burnwal 2015년 3월 11일
편집: Matt J 2015년 3월 11일
Like 4-linearly independent vectors if n=4 as follows
a1=[1,17] , a2=[1,7] , a3=[1,1] , a4=[1,9]
  댓글 수: 1
James Tursa
James Tursa 2015년 3월 11일
편집: James Tursa 2015년 3월 11일
The simplest thing to do I suppose is just to pick off the columns of the identity matrix of the appropriate size. Do you have any other criteria that needs to be met?
I should add that your example will not work ... you can't have four linearly independent 2-element vectors, since two linearly independent 2-element vectors will span the entire space.

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

답변 (2개)

Matt J
Matt J 2015년 3월 11일
편집: Matt J 2015년 3월 11일
Generate any n x n nonsingular matrix, e.g.,
A = eye(n)
and take some subset of the columns.

Roger Stafford
Roger Stafford 2015년 3월 11일
You can also use matlab's 'orth' function to generate linearly independent vectors which span a given space. They will in fact be orthogonal. See:
http://www.mathworks.com/help/matlab/ref/orth.html
(Note: You cannot get four linearly independent vectors from your set of two-element vectors. The maximum would be two. For example, in the vectors you give, there is the equality:
3*a1-8*a2+5*a3 = 0

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by