I'm trying to create this function, and I am getting an error. I don't know what I am doing wrong…
>> function [y] = myfunc( x, y, z )y = -9*x - 10*y+ z*(-log(100-x-y)-log(x)-log(y)-log(50-x+y)); end function [y] = myfunc( x, y, z ) ↑Error: Function definitions are not permitted in this context.
Best Answer