%Analytical theory
R1=1;
R2=2;
V1=12
Rth=R1+R2;
Ith=V1./Rth;
Vn1=Ith.*R1;
Vn2=Ith.*R2
V1=0:0.5:10
Ith=V1./Rth;
Vn1=Ith.*R1;
Vn2=Ith.*R2;
disp('Source volt Node Volt.')
Theory=[V1', Vn2']
subplot(2,2,1),plot(dcsweewb,Theory,'*'),title('Source vs. Node')
xlabel('Node voltage'),ylabel('Source voltage')
subplot(2,2,2),plot(pasweewb,'*'),title('Parameter Sweep')
xlabel('Resistance in ohms'),ylabel('Current in amps')
subplot(2,2,3),plot(transweb),title('Transient')
xlabel('Time in seconds'),ylabel('Node voltage')
subplot(2,2,4),plot(project1),title('Labview')
xlabel(''),ylabel('')
»
V1 =
12
Vn2 =
8
V1 =
Columns 1 through 7
0 0.5000 1.0000 1.5000 2.0000 2.5000 3.0000
Columns 8 through 14
3.5000 4.0000 4.5000 5.0000 5.5000 6.0000 6.5000
Columns 15 through 21
7.0000 7.5000 8.0000 8.5000 9.0000 9.5000 10.0000
No comments:
Post a Comment