필터 지우기
필터 지우기

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

조회 수: 7 (최근 30일)
Jignesh
Jignesh 2014년 4월 26일
답변: rifat 2014년 4월 26일
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

채택된 답변

rifat
rifat 2014년 4월 26일
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));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by