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

조회 수: 2 (최근 30일)
swati paliwal
swati paliwal 2018년 3월 26일
편집: KSSV 2018년 3월 26일
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