how to most efficiently solve equation?

조회 수: 1 (최근 30일)
SpeedyGonzales
SpeedyGonzales 2018년 1월 13일
편집: Walter Roberson 2018년 1월 14일
Hi, I have the following data (see file attached)
f 8594x93 matrix w 8594x1 vector z 1x93 vector
I want to now find a vector w1 (8594x1) such that w1' * f = z. Asked differently, how does w1 need to look if when multiplied with f gives exactly z?
What is the most efficient way of setting this up in Matlab? Thanks GonzalesSpeedy

채택된 답변

Matt J
Matt J 2018년 1월 13일
편집: Matt J 2018년 1월 13일

추가 답변 (1개)

SpeedyGonzales
SpeedyGonzales 2018년 1월 13일
thanks. That was easy!
  댓글 수: 3
Roger Stafford
Roger Stafford 2018년 1월 13일
편집: Walter Roberson 2018년 1월 14일
It is important to realize that your problem is the equivalent of having 93 linear equations in 8594 unknowns. Consequently the solution obtained by z/f will be far from unique. In fact it probably has some 8501 degrees of freedom. Matlab uses a kind of "least-squares" optimization in making its selection out of all these possibilities. See the website:
Matt J
Matt J 2018년 1월 14일
SpeedyGonzales' comment moved here:
Thank you Roger for your comment. For the time being it is not ultimately important to have the optimal solution, just one that satisfies my conditions suffices.

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

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by