What am i doing wrong in this code?

1 view (last 30 days)
Ibrahim Ullah
Ibrahim Ullah on 4 Sep 2019
Answered: KALYAN ACHARJYA on 4 Sep 2019
syms beta
epsilon_r = 2.1;
f = (7e12);
w = (2*3.1416*f);
surface_conductivity = (0.00012164049 - 0.0053497497i);
c = (3e8);
epsilon_naught = (8.854e-12);
solve((1/(sqrt((kspp).^2 - (w/c).^2))) + ((epsilon_r)/(sqrt((kspp).^2 - ((w/c).^2)*epsilon_r))) + (surface_conductivity/(epsilon_naught*w)*i))
I was trying to solve this equation but when i run this code, in the command line i got the ans= 0-by-1.Any kind of suggestion will be really helpful. Thanks in advance
Capture.PNG

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 4 Sep 2019
syms beta
epsilon_r=2.1;
f=(7e12);
w=(2*3.1416*f);
surface_conductivity = (0.00012164049 - 0.0053497497i);
c=(3e8);
epsilon_naught=(8.854e-12);
solve((1/(sqrt((beta).^2 - (w/c).^2))) + ((epsilon_r)/(sqrt((beta).^2 - ((w/c).^2)*epsilon_r))) + i*(surface_conductivity/(epsilon_naught*w)),beta)
Do verify?

Community Treasure Hunt

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

Start Hunting!