Fourier Coefficients and Signal Recostruction
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157251/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157253/image.jpeg)
The two picture above are the question I am being asked and some background. I have been on this problem for close to 2 and a half hours. This is the code I have written so far. Any help would be greatly appreciated.
T=2;
To=4;
Dt=.01;
t=-5:Dt:5;
N=10;
n=1:1:N;
ao=(T/To);
fo=1/To;
x1=zeros(10,1);
for n=1:10
an=(1/(pi*n))*sin((n*pi*T)/To);
x1(n+1)=(an)*cos(2*pi*n*fo*t);
end
gt=ao+2*x1(n+1);
ggt=gt*Dt;
plot(t,ggt);
% code
end
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Switches and Breakers についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!