Info

This question is closed. Reopen it to edit or answer.

i want to solve this equation

1 view (last 30 days)
Ana Monea
Ana Monea on 20 May 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
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

Answers (1)

Star Strider
Star Strider on 20 May 2020
See if this does what you want:
a = sum((x - mean(x)).*y) / sum((x - mean(x)).^2);
.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!