MATLAB: Newbie user [need help, urgent]

MATLAB

hello everybody, i want to ask a little bit question, how i can get the value of x from this equation (sin(x)-sin(1.57)*exp(-(2*pi-x+1.57/2010.6))) , thank you

Best Answer

To get one solution within a range where there is a zero intersect:

>> fun = @(x) sin(x)-sin(1.57)*exp(-(2*pi-x+1.57/2010.6));
>> val = fzero(fun,[-1,1])
val =  0.0018695

Do you want to get multiple intersects?

Related Question