how to most efficiently solve equation?
5 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
更多回答(1 个)
SpeedyGonzales
2018-1-13
3 个评论
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
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 Center 和 File Exchange 中查找有关 Linear Least Squares 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!