CH10.4 -PP10.6 using the superposition theorem to get the voltage--ECE 10

Fundamentals of electric circuits 5th edition

 

pp10.6
practice problem 10.6

I try to use matlab to sovle this problem

%% pp10.6 fundunmental of circuit
%  page 424
% w=5, 75@0 voltage
%caculate the voltage by 75sin5t
w1=5;C=0.2,L=1;
R=8; ZC1=-j/(w1*C)
ZL1=j*w1*L
Vs=75
ZP1=ZC1*ZL1/(ZC1+ZL1) %% parallel impedance
vo1=Vs*ZP1/(ZP1+R)
[theta1,rho1]=cart2pol(real(vo1),imag(vo1))  %get the amplitude and angle
X1=['vo1=',num2str(rho1),'*cos(5t',num2str(theta1*180/pi),')']
 
disp(X1) 
% caculate the voltage by current source 6 cos10tA
% w=10, I=6, current
w2=10;I=6;
ZC2=-j/(w2*C)
ZL2=j*w2*L 
ZP2=ZC2*R/(ZC2+R) %% parallel impedance R,C

ZP3=ZP2*ZL2/(ZP2+ZL2) % total parallel impedance RLC
vo2=I*ZP3 % parallel voltage

[theta1,rho1]=cart2pol(real(vo1),imag(vo2))%get the amplitude and angle
X2=['+vo2  ',num2str(rho1),'*cos(5t',num2str(theta1*180/pi),')'];
disp(X2)
 % total answer
X=[X1,X2]
disp(X)
PP10.6 ANSWER
标题

In the code, I use cart2pol to get the amplitude and angle ,therfore, I can easily transform phasor to time domain.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

做一个码农都是奢望

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值