Professional Documents
Culture Documents
LEC 6 Phasor Extraction - Continue - THREE - Sample
LEC 6 Phasor Extraction - Continue - THREE - Sample
LEC 6 Phasor Extraction - Continue - THREE - Sample
𝑦2
𝑦1
𝑦0
𝑦−1
Extracting Phasors of AC Voltage and Current Signals
𝑦2
𝑦1
𝑦0
𝑦−1
Extracting Phasors of AC Voltage and Current Signals
𝑦2
𝑦1
𝑦0
𝑦−1
Extracting Phasors of AC Voltage and Current Signals
𝑦2
𝑦1
𝑦0
𝑦−1
Extracting Phasors of AC Voltage and Current Signals
Example
Compute the phasor of the following samples using the three sample
algorithm.
These samples are for 50 Hz signal sampled at 800 Hz.
fo= 50 ; % fundamental frequency
phi= pi/4;
figure; plot(time,y)
% two sample algorithm
% total number of samples = 3* fs/ fo
%for n = 2 : 1 : 3*(fs/fo)+1
for n = 3 : 1 : length(y)
yc = y(n-1);
ys = ( y(n-1)*cos(theta)- y(n-2) )/sin(theta);
%yc = y(n);
%ys = ( y(n)*cos(theta)- y(n-1) )/sin(theta);