FFT in MatLab and Origin Pro comparison. Plots are the same but frequency data is a little bit different. Why?
7 views (last 30 days)
Show older comments
Hi everybody! I did a fft code to MatLab and then I tried to compare with OriginPro, essentially I have the same plots in both softwares but I have a problem, when I observe the points I plot are a little bit different, so I can't understand what is happening :S
I show you only the firsts values of frequency because there are approximately 67000 values
Thanks in advance!
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148689/image.jpeg)
>>
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148691/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148692/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148694/image.jpeg)
0 Comments
Answers (1)
dpb
on 2 Sep 2015
First of all, you'll have to use the same number of points for both spectra, then the difference should simply be one of setting the actual limits of the plot to coincide; quite likely each product has a slightly different algorithm for setting default plotting limits.
2 Comments
dpb
on 2 Sep 2015
I've no klew regarding the other program, in Matlab you set the plotting limits with xlim
See Also
Categories
Find more on Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!