 #1
 20
 0
Main Question or Discussion Point
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