Info
This question is closed. Reopen it to edit or answer.
two dim fft matlab
1 view (last 30 days)
Show older comments
I have a vector X of size 2x1000. In the first row (X1) each bit is either zero or one which are amplitude. The second row (x2) represents position starting from zero to all the way upto 999. How can I have FFT(X1,X2) in MATLAB?
0 Comments
Answers (1)
Image Analyst
on 20 Jan 2020
That doesn't make sense. You don't want to take the Fourier transform of the location/position of the signal. Just do the amplitude in the first row:
ft = fft(X(1, :));
3 Comments
Image Analyst
on 21 Jan 2020
Then you don't need FFT. You can just do it in the spatial domain with bwareaopen():
v = [0 0 0 0 0 1 1 1 1 1 0 0 0 1 1 0 0 0 0 1 1 1 0 1]
out = bwareaopen(v, 3)
out =
1×24 logical array
0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!