Problem related complex number equation in Matlab
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Manish Kumar
am 11 Jun. 2021
Kommentiert: 旭 高
am 18 Nov. 2021
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 Kommentare
Sulaymon Eshkabilov
am 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%
Akzeptierte Antwort
Walter Roberson
am 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))
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!