MATLAB Answers


How Fourier Synthesis is performed using Matlab ?

ramdas patil 님이 질문을 제출함. 18 May 2015
I have read about Fourier 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?

  댓글 수: 0

로그인 to comment.

답변 수: 2

Answer by Youssef Khmou
on 18 May 2015
Edited by Youssef Khmou
on 18 May 2015

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 :
axis([0 1 -2 2]);
% Approximation with Fourier decomposition
for r=1:2:N
hold on;
hold off;

  댓글 수: 1

Thanks.. Exactly what I was looking for. Simple and Compact.

로그인 to comment.

Answer by Image Analyst
on 18 May 2015

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

표시 이전 댓글 수: 1
You made your own script or function called fft2 and it looks like that is being used in preference to the real one. This is what you should see:
>> which fft2
C:\Program Files\MATLAB\R2015a\toolbox\matlab\datafun\fft2.m
Use a different name for your own version of it that you've placed in C:\Users\RK\Documents\MATLAB so that there is no conflict.
@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.
Make sure that you're passing in an even number for rows and columns.

로그인 to comment.

Translated by