{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ctf_read - function[ctf =...

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.
Background image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '10
  • ThomasHolland
  • Implied warranty, GNU General Public License, Free Software Foundation, General Public License, GNU General Public

{[ snackBarMessage ]}