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
Time Value Fourier Amplitude Frequency
0 0.1
0.1 2
0.2 3
0.4 1
ASKER
This is strictly not for academic assignment.
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.
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
data=dlmread('C:\My Documents\tsdata.txt','\t'
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You are right. I am going to open another question for my quarries. Thank you.
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.