MATLAB: Error using / Matrix dimensions must agree…How can i eliminate this error

swati

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

Best Answer

Read about matlab element by element operations.
fit=sum(abs(0.404./(1+95575.7*pi*L))-1).^2