Ctf_read - function[ctf = ctf_read(folder,CHAN,TIME,TRIALS,COEFS ctf_read Read data from a CTF.ds folder[ctf = ctf_read[folder[CHAN[TIM

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
function [ctf] = ctf_read(folder,CHAN,TIME,TRIALS,COEFS); % ctf_read - Read data from a CTF .ds folder % % [ctf] = ctf_read( [folder], [CHAN], [TIME], [TRIALS], [COEFS] ); % % eg, % ctf = ctf_read; % inputs are all optional % ctf = ctf_read('/data/directory/datasetname.ds'); % ctf = ctf_read(folder,'meg','all','all'); % % ctf struct returned has fields: % % folder: full path to .ds folder % res4: the .res4 file path and version % setup: dataset header parameters % sensor: sensor data, including type, position and orientation % data: all of the data in a 3D matrix, with rows of samples, columns % of channels and frames of epochs, so: % data(1,:,:) is the first sample, for all channels and epochs % data(:,1,:) is the first channel, for all samples and epochs % data(:,:,1) is the first epoch, with all samples and channels % % This function calls, in this order: % % ctf_read_res4 - to read in header, gain/offset, and sensor information % ctf_read_meg4 - to read in the data % % INPUTS--------------------------------------------------------------------- % folder: The .ds directory of the dataset. If not given, a graphical % prompt for the folder appears. % % CHAN:
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/07/2010 for the course ENG 42336 taught by Professor Thomasholland during the Spring '10 term at UC Davis.

Page1 / 3

Ctf_read - function[ctf = ctf_read(folder,CHAN,TIME,TRIALS,COEFS ctf_read Read data from a CTF.ds folder[ctf = ctf_read[folder[CHAN[TIM

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online