12.07.2015 Views

MS Thesis R. Hager - Hawaii National Marine Renewable Energy ...

MS Thesis R. Hager - Hawaii National Marine Renewable Energy ...

MS Thesis R. Hager - Hawaii National Marine Renewable Energy ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

% Read in Force DataAPPENDIX B: FAST FOURIER TRANSFORM MATLAB CODEnewData1 = importdata('Data Sheet_4_19_12_body3_180deg_wc1to18.txt', '\t');% Data Processing for the truncated set% note this is for only one trial, for multiple trials the code must be% modifiedtrial1 = newData1(2000:1:3000,1);trial2 = detrend(trial1);dt1t = 1/100; % [s] time step of datatend1t = length(trial1)*dt1t; %[s] length of time signalF_s1t = 1/dt1t; %[Hz] Sample rate of datat1t = 0:dt1t:tend1t-dt1t; % [s] length of trialstrial3 = fftshift(trial2);trial4_fftt = abs(trial3);trial5_fftt = max(trial4_fftt)Nt = length(trial4_fftt);t1t2 = length(trial1)*dt1t; % total length of time seriesfr = 1-1/t1t2;plot(fr,trial4_fftt);113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!