Matrix solving via least-squares: Y = A*B where Y, A and B are all matrices
2 ビュー (過去 30 日間)
古いコメントを表示
I've been trying to get the lsqcurvefit function to find B such that A*B = Y where B and Y are mxn matrices and A is a mxm matrix of constants. The closest advice I could find is HERE but it doesn't seem to want to work when the "function" is a matrix.
Any advice or direction is greatly appreciated. Is there a better function out there to use? I wrote up a convergence algorithm to solve this but I want to check the results against something that already exists and is proven. Plus, if lsqcurvefit is anything like fit, it'd have the added bonus of returning errors for each value.
3 件のコメント
John D'Errico
2015 年 8 月 6 日
編集済み: John D'Errico
2015 年 8 月 6 日
You could NEVER have used lsqcurvefit to solve the problem anyway, since it does not allow linear equality constraints. As well, lsqcurvefit does not return statistics on the parameters. As Matt points out, lsqlin will solve the problem, however it too does not return the confidence information about the parameters that you wish.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interpolation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!