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

2 次查看(过去 30 天)
fit=sum(abs(0.404 /(1+95575.7*pi*L))-1)^2

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Particle Swarm 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by