Linear Regression (replicating the backslash or MLDIVIDE function)
7 次查看(过去 30 天)
显示 更早的评论
I have a legacy system I need to update with the exact equivalent of Matlabs Linear Regression function as calculated with the "\" i.e. the backslash operator. Precision is critically important. Ideally I'd like to see the Matlab code so I can re-rewrite it in the target legacy language.
How can I see the code? or the algorithm/pseudocode for how Matlab performs the calculation?
Moved here by Matt J:
My data is two vectors A and B each 20 in length. I don't know how MLDIVIDE handles it
0 个评论
回答(1 个)
the cyclist
2014-11-17
There is not a simple answer.
mldivide is a built-in MATLAB function (not a script that you can edit and peer into), so I don't believe you will be able to look at the actual code.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!