Link to home
Start Free TrialLog in
Avatar of okd
okd

asked on

Matlab Fourier amplitude(Y) vs. Frequency (X)

I have columns of time history data as shown below. How to do the Fourier transform, and plot them as Fourier amplitude(Y) vs. Frequency (X)? Any example of MATLAB command or code will help. Thanks.

Time Value   Fourier Amplitude  Frequency
0         0.1
0.1      2
0.2      3
0.4      1
Avatar of yuk99
yuk99
Flag of United States of America image

Is it an academic assignment? Cause we cannot do your home work on your behalf.
If you are studying Matlab, here is the links to documentation on Fourier transformation:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/fft.html
http://www.mathworks.com/access/helpdesk/help/techdoc/math/brentm1-1.html

Please look there and try to solve the task by yourself. Let us know if you will have problems.
Avatar of okd
okd

ASKER

This is strictly not for academic assignment.
Avatar of okd

ASKER

However, you have answered my question. I normally use Maple, but thought of moving to Matlab. Therefore, I am very new to Matlab. Thank you.
Let me know if you need something else.
Avatar of okd

ASKER

When I use the command

data=dlmread('C:\My Documents\tsdata.txt','\t', 1,0);

it says,

??? error using dlmread
File not found or permission denied.

Thefeore, my question is how to select a path of the data file? - okd


ASKER CERTIFIED SOLUTION
Avatar of yuk99
yuk99
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of okd

ASKER

You are right. I am going to open another question for my quarries. Thank you.