blob: 1158b1661783269048ebe8fda20cdff0cc5b7a8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//Chapter-2, Example 2.13, Page 2.21
//=============================================================================
clc
clear
//INPUT DATA
N1=1100;//Number of turns in the primary
N2=550;//Number of turns in the secandary
V1=200;//Primary voltage in V
R2=5;//Resistance in the secondary in ohm
//CALCULATIONS
K=(N2/N1);//Turn ratio
V2=(K*V1);//Secondary voltage in V
I2=(V2/R2);//Current in the secondary in A
I1=(K*I2);//Current in the primary in A
//OUTPUT
mprintf('(a)Secondary voltage is %3.0f V\n(b)Primary current is %3.0f A\n(c)Secondary current is %3.0f A',V2,I2,I1)
//=================================END OF PROGRAM==============================
|