eeg_load_scan_coh_asc

eeg_load_scan_coh_asc - function coh =...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
function coh = eeg_load_scan_coh_asc(filename) % eeg_load_scan_coh_asc - Read a Scan coherence ascii file (*.dat) % % Usage: coh = eeg_load_scan_coh_asc(filename) % % This script extracts all the coherence values from a Scan % coherence ascii file. % % An example of the coh struct returned: % % subject: '' % date: '19-Jul-2002' % time: '14:01:47' % channels: 64 % rate: 500 % type: 'PairedChannels' % points: 82 % domain: 'Frequency' % pairs: 2016 % freqbins: [1x82 double] % pairnames: {2016x2 cell} % data: [2016x82 double] % phase: [2016x82 double] % % % $Revision: 1.1 $ $Date: 2009/04/28 22:13:52 $ % Licence: GNU GPL, no express or implied warranties % History: 11/2002, Darren.Weber_at_radiology.ucsf.edu % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [path,name,ext] = fileparts(filename); file = fullfile(path,[name ext]); [fid,msg] = fopen(file,'r'); if ~isempty(msg), error(msg); end tic fprintf('\nEEG_LOAD_SCAN_COH_ASC...\n'); fprintf('...reading data file:\n\t%s\n',file); coh = read_coh(fid); t = toc; fprintf('...done (%6.2f sec).\n\n',t); return %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [coh] = read_coh(fid) coh = []; % Read the header, eg:
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
% % [Subject] % [Date] 07/19/2002 % [Time] 14:01:47 % [Channels] 64 % [Rate] 500.000000 % [Type] PairedChannels % [Points] 82 % [Domain] Frequency % [Pairs] 2016
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern