Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
If by the plot does not look "good" you mean it is split and spread out its because the FFT is not centered. Use abs(fftshift(fft(x))) instead to get a centered plot.
*Edit: the order which you use fftshift does matter, it should be used after you take the fft.
In my view you need to have couple of more samples to be presents for ECG to see the good frequecy correlation....or you do one thing there is function for resample the sequece....for 257 samples you will get frequency resoltion of only 128 on either side with one zero-frequecy component.... fftshift is good to view the data....but to get more accurate frequency contribution....it better to have more samples such that.... there will be good frequency resolution....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.