Fast Fourier Transform Question in Matlab

I have a signal with 8192 samples with lots of intermittent 0s. I want to compute the FFT of this signal however I don't want to use all of these 0s.
How can I shorten the original signal to get rid of these 0s and compute a FFT that is equivalent to the original signal?

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 14일

0 개 추천

You can use sparse function
y=rand(1,8192);
yout=sparse(y)
But to compute the fft you will need to use y, unless you use your own code

카테고리

도움말 센터File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

태그

질문:

2013년 3월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by