Info
此问题已关闭。 请重新打开它进行编辑或回答。
i want to solve this equation
2 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/295513/image.png)
So i have to find a knowing that i have 2 vectors x and y with 10 values each. I tried with symsum but i have errors. help please
1 个评论
回答(1 个)
Star Strider
2020-5-20
See if this does what you want:
a = sum((x - mean(x)).*y) / sum((x - mean(x)).^2);
.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!