plot a nonlinear equation using FSOLVE Routine in matlab

5 views (last 30 days)
Hello all;
I have a nonlinear equation like this :
fig1.png
in this equation :
and:
f is frequency and is between:
I want to plot vs. f.
there is from an article in which the author said she used FSOLVE Routine in matlab to solve this. and at last she derived this figure:
fig2.png
in which the real and imaginary parts of ky are considered.
Mr. John D'Errico said FSOLVE just gives the real part of a solution.
so how the author of the article solved the equation for both the real and the imaginary part of ky?
Just give me a hint, I will do the rest.
BR
Mohammad
----------------------------------------------
  2 Comments
Torsten
Torsten on 8 May 2019
Edited: Torsten on 8 May 2019
Just out of interest:
Why does the graphic show Im(ky) for 0<f<10 and Re(ky) for 10<f<20 ? Is there a physical reason for this ?
And why does the y-axis show real values for ky if ky itself is complex-valued ? Does it mean that the y-axis shows Re(ky) resp. Im(ky) depending on the region for f ?
And what is eta(ky) ?
mohammaddmt
mohammaddmt on 8 May 2019
the real part of ky is zero for the first and the third part and in the middle, the imaginary part of ky is zero. so the y xis shows real and imaginary values of ky.
BTW I just solved the problem. I had to break the equation to two equivalent equations by considering the real and imaginary parts of ky. so if we have a particular f, that means we have a particular k and then we have a solution for a system of nonlinear equations. this way, the fsolve could be used to solve the problem .
eta(ky) is just another approximation which is:
thanks to everyone who answered my question.
Regards
Mohammad

Sign in to comment.

Answers (0)

Categories

Find more on Systems of Nonlinear Equations in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!