I have a simple code to solve 3 nonlinear equations.
below is my code. I am pretty sure about it but I keep getting this error:
"em1" requires more input arguments to run.
this is em1.m:
function F = em1(x)
F(1) = (x(1)/m0)*cot(x(1)*(b-h))+(x(2)/md)*cot(x(2)*h);
F(2) = x(3)-((((2*pi*f)^2)*m0*e0)-(x(1))^2)^(1/2);
F(3) = x(3)-((((2*pi*f)^2)*md*ed)-(x(2))^2)^(1/2);
and here is my mainem1.m file:
fun = @em1;
x0 = [100,100,5];
x = fsolve(fun,x0)
I am sure that the error is not because of "the number of inputs" but what is it???? I can not seem to find the solution. please help me run my code.