Help with linear regression
1 次查看(过去 30 天)
显示 更早的评论
Hi folks,
I have 2 tables. A is 256x54 and B is 1x54.
I want to correlate each of the 256 values in each column of table A to the corresponding value in table B, and then find the index within table A that gives the best correlation.
Is this possible? So far I have been unseccessul in applying the \ operator as per the documentation in here: https://uk.mathworks.com/help/matlab/data_analysis/linear-regression.html
Attached are my tables!
3 个评论
Rik
2022-2-4
You want to find the index of the closest number, purely based on the value?
So for the example data below it should return 1 and 3?
A=table([1;2;3],[10;20;30]),B=table(1.4,26)
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!