Info
This question is closed. Reopen it to edit or answer.
i want to solve this equation
3 views (last 30 days)
Show older comments
![](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 Comment
Answers (1)
Star Strider
on 20 May 2020
See if this does what you want:
a = sum((x - mean(x)).*y) / sum((x - mean(x)).^2);
.
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!