Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
two dim fft matlab
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Image Analyst
el 20 de En. de 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 comentarios
Image Analyst
el 21 de En. de 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
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!