# MATLAB: Need to convert excel (time domain data ) to frequency domain data

fft

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

% read datadata=xlsread('fileName.xlsx');% frequency analysisy=fft(data(:,2));len=length(data(:,1));n=0:len-1;fs=50; % mention your sampling freqN=n*fs/(len-1);plot(N,abs(y));