Manoj
Active since 2013
Followers: 0 Following: 0
Question:
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 12 samples per cycle.
a. Estimate the amplitude of the signal using Full-cycle Fourier algorithm ;
This is the one i coded and i dont get result. Kindly help me in suggesting the correct solution.
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);