MATLAB: Can anyone try to solve this error..?? Attempt to reference field of non-structure array.P=ta​u(i,:).^al​pha.eta(i,​:).^beta;

metaheuristics

Attempt to reference field of non-structure array
P=tau(i,:).^alpha.eta(i,:).^beta;

Best Answer

You're missing part of an operator between alpha and eta. You probably meant one of the following:
P=tau(i,:).^alpha.*eta(i,:).^beta;
P=tau(i,:).^alpha./eta(i,:).^beta;