 #1
adeeyo
 20
 0
Hi,
Please assist,
I write this MATLAB function and receive the error below
function f=myfunn(z,x,K,L1,L2,phi)
for c=1:3
f=z(c)(x(2,c).*K(c).*L1)(x(1,c).*phi(2,c).*L2)./phi(1,c);
end
function f=myfunn(z,x,K,L1,L2,phi)

Error: Function definitions are not permitted in this context.
Please assist me on how to go about it.
Thanks
adeeyo
Please assist,
I write this MATLAB function and receive the error below
function f=myfunn(z,x,K,L1,L2,phi)
for c=1:3
f=z(c)(x(2,c).*K(c).*L1)(x(1,c).*phi(2,c).*L2)./phi(1,c);
end
function f=myfunn(z,x,K,L1,L2,phi)

Error: Function definitions are not permitted in this context.
Please assist me on how to go about it.
Thanks
adeeyo