Info

此问题已关闭。 请重新打开它进行编辑或回答。

i want to solve this equation

3 次查看(过去 30 天)
Ana Monea
Ana Monea 2020-5-20
关闭: MATLAB Answer Bot 2021-8-20
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 个)

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

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by