Assuming the following waveform v=5*sin(wt+pi/6) at (t<0.1)+10*sin(wt+pi/6) at(t>=0.1); f=60 Hz, and sampling frequency is N= 12 samples per cycle. a. Estimate the amplitude of the signal using Full-cycle Fourier algorithm

f=60; N=12; w=2*pi*f; dt=1/(f*N); t=0:dt:0.2; v=5*sin(2*pi*f.*t+pi/6).*(t<0.1)+10*sin(2*pi*f.*t+pi/6).*(t>=0.1); for i=0:length(t)-1 Va=v(i); Wx=cos(2*pi/N).*t; Wy=sin(2*pi/N).*t; a=Va*Wx; b=Va*Wy; vp(i)=sqrt(a.^2+b.^2); end length(t)=(length(t)-1); plot(t,vp);

Answers (0)

Asked:

on 18 Sep 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!