blob: 9fa61f6a78751f2d9a4e0b84e3a25a0822da2752 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//example 9.7
clc;funcprot(0);
//Initialization of Variable
P=150;//power
V=8;//voltage
R=.01;//resistance
D=.5;//duty cycle
//calculation
I=P/.9/D/V;
disp(I,"max. current in A:")
Ir=I*D^.5;
Pq=Ir^2*R;
disp(Pq,"dissipated power in W:")
clear()
|