ghasem
Posts:
95
Registered:
4/13/13


Re: complicated equation including bessel functions
Posted:
May 8, 2013 7:43 AM


> > > What variables are changed within your forloop ? > > > The complex constants eps1, k0, k1 and k2 ? > > > > Neither, it's fsolve firstguess that change: > > > > my_guess = (i/100) +1j*(k0+(i/m)); > > exp2(i) = fsolve(@(bet)eval(exp1(i)),guess); > > > > Bruno > > But my_guess is not handed to fsolve. Strange ... > Torsten. ====================================== I'm sorry really.I have a little mistake. my code is : ... my_guess = (i/100) +1j*(k0+(i/m)); exp2(i) = fsolve(@(bet)eval(exp1(i)),my_guess);
also,complex constants eps1, k0, k1 and k2 are known. I have only one unknown,as I defined "syms bet". I want to solve this equation for "bet". but fsolve is not good.because my arguments are complex,and my guesses are not very exact.Therefore fsolve is not exact. is there any better mehtod? ghasem

