How Fourier Synthesis is performed using Matlab ?

조회 수: 40 (최근 30일)
ramdas patil
ramdas patil 2015년 5월 18일
댓글: Ahmed Mujtaba 2016년 11월 16일
I have read about Fourier Synthesis
http://whatis.techtarget.com/definition/Fourier-synthesisFourier-synthesis I want to clear my concept about Fourier Synthesis using Matlab .But don't know how to do this.
So can anybody show me how Fourier Synthesis is performed using Matlab?

답변 (2개)

Youssef  Khmou
Youssef Khmou 2015년 5월 18일
편집: Youssef Khmou 2015년 5월 18일
Fourier synthesis is simple application of coefficients summation either numerically or symbolically, Fourier decomposition requires certain conditions of the input function, you can start with a simple example which is an approximation of a square wave of 2 Hz, using 11 terms :
Fs=150;
t=0:1/Fs:4-1/Fs;
f=2;
x=square(2*pi*f*t);
figure;
plot(t,x);
axis([0 1 -2 2]);
% Approximation with Fourier decomposition
y=0;
N=11;
for r=1:2:N
y=y+sin(2*pi*f*t*r)/r;
end
hold on;
plot(t,y,'r');
xlabel('t');
ylabel('magnitude');
hold off;
  댓글 수: 1
Ahmed Mujtaba
Ahmed Mujtaba 2016년 11월 16일
Thanks.. Exactly what I was looking for. Simple and Compact.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2015년 5월 18일
There is nothing at that link. I don't know what Fourier Synthesis might be synthesizing. I don't think computing the Fourier spectrum of a signal or image is called "synthesizing", at least not by anyone I know, so I'm not really sure. You can synthesize things though, such as the attached demo where I synthesize clouds by manipulating the Fourier Spectrum.
  댓글 수: 4
ramdas patil
ramdas patil 2015년 5월 19일
@Image Analyst sorry but when I run clouds.m file and click on "CONSTANT H ", I am still getting the following error
Attempted to access radius(346.5,615.5); index must be a positive integer or logical.
Error in noiseonf (line 59) radius(rows/2+1,columns/2+1) = 1; % .. avoid division by zero.
Error in clouds (line 53) grayImage = noiseonf(rows, columns, 1.7); % 1.7 is a good value.
>>
Image Analyst
Image Analyst 2015년 5월 19일
Make sure that you're passing in an even number for rows and columns.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Discrete Fourier and Cosine Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by