blob: 4bf61195b04a3691d92683933088bdcc9ae34a07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
clc
// Fundamental of Electric Circuit
// Charles K. Alexander and Matthew N.O Sadiku
// Mc Graw Hill of New York
// 5th Edition
// Part 2 : AC Circuits
// Chapter 9 : Sinusoids and Phasors
// Example 9 - 8
clear; clc; close;
//
// Given data
V = complex(12*cosd(45.0000),12*sind(45.0000));
Z = complex(6*cosd(90.0000),6*sind(90.0000));
//
// Calculations I
I = V/Z;
I_mag = norm(I);
I_angle = atand(imag(I),real(I));
//
disp("Example 9-8 Solution : ");
printf(" \n I_mag = Magnitude of I = %.3f A",I_mag)
printf(" \n I_angle = Angle of I = %.3f degree",I_angle)
|