2016-10-01 2 views
0
% Set up variables -------------------------------------------------------- 
folder = fileparts(mfilename('fullpath')); 
if (isempty(folder)) 
    folder = pwd; 
end 
folder = [folder '\data']; 


% ========================================================================= 
% EDIT THIS =============================================================== 
% Make sure to fill the variables samples with the eye movement data in the 
% proper colums. In blinks mark all the samples that are not good data. In 
% most VOG systems it is best to remove 100 ms before and after the blink 
% to remove all artifacts. 
% ========================================================================= 
    session = 'test'; 
    samplerate = 500; 

%  samples = []; 
%  % samples(:,1)  timestamps of the recording in miliseconds 
%  % samples(:,2)  horizontal position of the left eye in degrees 
%  % samples(:,3)  vertical position of the left eye in degrees 
%  % samples(:,4)  horizontal position of the right eye in degrees  
%  % samples(:,5)  vertical position of the right eye in degrees 

약간 혼란 스럽습니다. 이 스크립트는 온라인에서 찾았지만 작동 방식으로 데이터를 입력하는 방법을 이해할 수 없습니다. 일부 데이터 파일로 시도했지만 그렇지 않습니다. 나는 독서 자료에 관하여 원본의 부분 만 붙인다Matlab에서이 코드를 확인하십시오. 스크립트가 데이터를 읽는 방식을 이해할 수 없습니다.

답변

0

data라는 폴더는 스크립트 자체와 동일한 폴더에있다. 운영 체제에서 파일 경로 구분 기호의 잠재적 차이를 처리하기 위해 folder = [folder '\data']folder = fullfile(folder, 'data')으로 변경했습니다.

원할 경우 folder에 데이터를 저장하려는 위치를 지정할 수도 있습니다.

관련 문제