blob: 2c452619096fd00f4c66f0f0029ddce7357d2077 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Ex:4.9
clc;
clear;
close;
L=1*10^-3;
f1=100;
f2=10000;
X_L1=(2*%pi*f1*L);
X_L2=(2*%pi*f2*L);
printf("Reactance at 100Hz = %f ohm",X_L1);
printf("\nReactance at 10kHz = %f ohm",X_L2);
|