Error using / Matrix dimensions must agree...How can i eliminate this error

2 views (last 30 days)
fit=sum(abs(0.404 /(1+95575.7*pi*L))-1)^2

Accepted Answer

KSSV
KSSV on 26 Mar 2018
Edited: KSSV on 26 Mar 2018
Read about matlab element by element operations.
fit=sum(abs(0.404./(1+95575.7*pi*L))-1).^2

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!