필터 지우기
필터 지우기

Projection using Modified Gram-Schmidt orthogonality

조회 수: 3 (최근 30일)
M
M 2023년 1월 25일
댓글: Jan 2023년 1월 28일
Hello,
I need the Modified Gram-Schmidt orthogonalization method in my Research.
I wrote the following code for the projection using the Classic Gram-Schmidt:
function[Xp] = Project(A,B)
Xp = [] ;
u1 = B;
for i = 1:1:6
u2 = A(i,:)- (A(i,:)*u1)/(u1'*u1) * u1';
Xp = [Xp;u2] ;
end
end
I faced problems to convert the Modified Gram-Schmidt orthogonalization method into MATLAB code, which is illustrated in the following link https://en.wikipedia.org/wiki/Gram%E2%80%93Schmidt_process
under section Numerical stability.
Can anyone help me in this problem please?
  댓글 수: 22
Torsten
Torsten 2023년 1월 26일
Then I can assure you that from what you wrote, nobody will be able to understand what you are looking for.
Try to understand the problem first before looking for a solution.
Jan
Jan 2023년 1월 28일
@M: Please stop addressing specific users by messages like "Hi @xyz do you have any idea about my question please?"
Imagine what would happen, if all users do this: The most active users would receive a huge number of notifications and find less time to post answers.

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

채택된 답변

Matt J
Matt J 2023년 1월 25일
편집: Matt J 2023년 1월 26일
Aorth=orth(A); %A orthogonalized
ProjB=Aorth*(Aorth.'*B); %projection of B
  댓글 수: 38
Torsten
Torsten 2023년 1월 26일
I'm surprised you now found what you were searching for.
In the end, was it projecting a single vector onto a set of vectors or a set of vectors onto a single vector you were aiming at ?
M
M 2023년 1월 26일
@Torsten, my problem is an optimization problem. it contains equations and I need to know unknown values using several orthogonal techniques. Thanks

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Least Squares에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by