Trying to transform data into FFT format

10 visualizaciones (últimos 30 días)
Mason Condren
Mason Condren el 24 de Ag. de 2022
Comentada: Mason Condren el 24 de Ag. de 2022
I have been trying to convert data into FFT format, but it does not look like a wave in the graph. The columns I am calling to match the first plotted diagram. The data does not look like a wave up close as it should. I am assuming that is the problem.
%T = xlsread('Baseline.xlsx');
t = T(:,1);
x_t = T(:,5);
t=t-t(1);
plot(t,x_t);
S = [t,x_t]
X = fft(S)
plot(X)
  2 comentarios
Walter Roberson
Walter Roberson el 24 de Ag. de 2022
Why are you taking a fourier transform of your time variable? Why does your time variable have duplicate values? Why does the other column contain nan or inf?
Mason Condren
Mason Condren el 24 de Ag. de 2022
From muy understanding the fft command is for a function. I only have data. So, I
converted the data into a 2x* matrix to FFT it. I do not have a good understanding of the command when it comes to raw data.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by