Problem related complex number equation in Matlab

2 views (last 30 days)
Hi all,
I am new matlab. I need one help from the matlab community. I hope you all help me
I have an complex number equation which i want to solve using matlab
I want to calculate Rl (dB) which is as follow
Rl(dB) = 20 log ((Zin-1)/(Zin+1))
where Zin = √((μ'-iμ″)/(ε'-iε″ )) tanh((2πift√((μ^'-iμ″)(ε'-iε″))/C))
where
C= velocity of light (3×10^8 m/s)
μ'=Real part of permeability
μ″=Imaginary part of permeability
ε'= Real part of permitivity
ε″=Imaginary part of permitivity
f = frequency
t= thickness of material (1 mm)
where f, μ', μ″, ε' and ε″ are variable and value of these variables are known to me (each variable has 52 different values)
As these variables has 52 different values which means Zin will have results in 52 values and similarily Rl(dB) has 52 values
I am attaching the data of these variable with this message; additionally, i am also attaching the word file of the equation
Any lead shall be appreciated
Thanks and Regrad
  4 Comments
Sulaymon Eshkabilov
Sulaymon Eshkabilov on 12 Jun 2021
Can you post what you have done so far? Imaginary numbers can be respresented in matlab:
a = 3; b = a + a*1i; % 1i is an imaginary # OR
a = 3; b = a + a*sqrt(-1); % To be confident 100%
Manish Kumar
Manish Kumar on 12 Jun 2021
@Sulaymon Eshkabilov I am facing difficulty to write the syntax of the above equation and applying loop in it

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 12 Jun 2021
format long g
C = 3e8;
t = 1;
f = [2e+8, 2.96e+8];
mu_prime = [4.76, 4.75];
mu_dprime = [7.79e-01, 6.81e-01];
eta_prime = [1.15e+01, 1.14e+01];
eta_dprime = [1.16e-01, 1.88e-01];
mu = mu_prime - 1i * mu_dprime;
eta = eta_prime - 1i * eta_dprime;
Zin = sqrt(mu ./ eta) .* tanh(2i .* pi .* f .* t .* sqrt(mu .* eta) ./ C);
Rl_dB = 20*log((Zin-1)./(Zin+1))
Rl_dB =
-30.175454443798 - 59.2864122947924i -30.7642278411602 - 60.0035633348152i
  2 Comments
旭 高
旭 高 on 18 Nov 2021
你好 能说的再详细一点嘛 我刚开始用这个程序 不是很明白如何操作

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!