?? autocorrelation.m
字號:
function Autocorrelation = Autocorrelation(file, Strength, lag)
% This function ->
% Autocorrelation: open auto'i', calculates the autocorrelation with
% the lag passed as an argument. The autocorrelation, Lags and bounds
% are outputted to the screen while the specific autocorrelation is
% printed to auto'i'
filename = sprintf('auto%d',file);
fid = fopen(filename,'w');
extract = '0';
if (fid == -1)
disp(['ERROR: File not found or could not be opened for read. Please check auto file name']);
end
[ACF,Lags,Bounds] = autocorr(Strength, 16)
extract = ACF(lag + 1)
fprintf(fid, '%f\n', extract);
fclose(fid);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -