필터 지우기
필터 지우기

Finding linear combination between 3 vectors

조회 수: 22 (최근 30일)
Dharshini
Dharshini 2023년 4월 25일
편집: Torsten 2023년 4월 25일
Express(1,-2,5) in R^3 as linear combination of (1,1,1),(1,2,3),(2,-1,1)
  댓글 수: 2
chicken vector
chicken vector 2023년 4월 25일
What did you try?
Torsten
Torsten 2023년 4월 25일
편집: Torsten 2023년 4월 25일
Hint:
Expressing (1,-2,5) as a linear combination of (1,1,1),(1,2,3),(2,-1,1) means solving the linear system
[[1,1,1].',[1,2,3].',[2,-1,1].']*x = [1,-2,5].'

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

답변 (1개)

Sufiyan
Sufiyan 2023년 4월 25일
Hi,
You can refer to the below code to find linear combination between three vectors.
a=[1 1 1]';
b=[1 2 3]';
c=[2 -1 1]';
d=[1 -2 5]';
%unknown variables
syms k1 k2 k3
%equation
eqns = (k1.*a)+(k2.*b)+(k3.*c)-d==0 ;
vars = [k1 k2 k3];
[k1, k2, k3] = solve(eqns,vars)
k1 = 
k2 = 
3
k3 = 
2
Hope this helps!

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by