How to plot amplitude of phasor from complex number?
4 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am looking to plot the maximum amplitude of a voltage phasor given by:
where V = 10 V, R = 4.7 kΩ, and C = 22 nF, over a range 0 < ω ≤ 100 Mrad/s.
The plot needs to be done with log 10 scale for both the ω and Vc axes.
I have the folowing code, but can't seem to get it figured out.
x = [ -4 : 0.1 : 8];
w = 10 .^ x;
Vc(w) = -(10/(w * 4700 * (22e-9))) - 10i;
plot(w, Vc(w));
Any help would be greatly appreciated.
0 件のコメント
採用された回答
VBBV
2020 年 12 月 5 日
編集済み: VBBV
2020 年 12 月 5 日
semilogx(10*log10(w), abs(Vc(w)));
use abs if you want resultant of real and complex values
or
semilogx(10*log10(w), real(Vc(w)));
if you want only real values
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!