Borrar filtros
Borrar filtros

need to convert excel (time domain data ) to frequency domain data

7 visualizaciones (últimos 30 días)
Jignesh
Jignesh el 26 de Abr. de 2014
Respondida: rifat el 26 de Abr. de 2014
i have excel (.csv) file ... that is time vs acceleration data for cantilever beam. i need to convert in to frequency domain for find out natural frequency of cantilever beam

Respuesta aceptada

rifat
rifat el 26 de Abr. de 2014
Assuming the Excel file contains time data in column 1 and acceleration data in column 2
% read data
data=xlsread('fileName.xlsx');
% frequency analysis
y=fft(data(:,2));
len=length(data(:,1));
n=0:len-1;
fs=50; % mention your sampling freq
N=n*fs/(len-1);
plot(N,abs(y));

Más respuestas (0)

Categorías

Más información sobre Data Import and Analysis 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