MATLAB: Please solve the error am new one to matlab..!!

acometaheuristics

Error using .* Matrix dimensions must agree. P=tau(i,:).^alpha.*eta(i,:).^beta;

Best Answer

Clearly tau and eta don't have the same number of columns (or alpha or beta are column vectors with different length).
We can't fix that for you. The matrix dimensions must agree for matlab to work out the answer.