{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


ctf_resample - function ctf = ctf_resample(folder,newFreq...

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

View Full Document Right Arrow Icon
function ctf = ctf_resample(folder,newFreq) % ctf_resample - Resamples a CTF .ds folder to a different sampling rate. % % ctf = ctf_resample(folder,newFreq) % % The function modifies two files in the .ds folder: % % *.meg4 - the raw data % *.res4 - the data resource file (essentially a header). % % This function calls the matlab resample function. There is also a % -resample option in the ctf software command, newDs, but it does not % specify the sample rate in Hz. % % INPUTS: folder (optional - brings up a file selector if not specified): % This is the .ds folder containing both the .meg4 and the .res4 % files % NEWFREQ: Frequency (in Hz) that you want to pretend the data were sampled % at. This can be lower or higher than the actual sampling % frequency. % RETURNS: 'ctf': the ctf data structure (without the raw data): contains the new % parameters for sample_rate etc % % $Revision: 1.1 $ $Date: 2009/01/30 03:49:27 $ % % Copyright (C) 2003 Alex Wade [email protected] % % This program is free software; you can redistribute it and/or % modify it under the terms of the GNU General Public License % as published by the Free Software Foundation; either version 2 % of the License, or (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this program; if not, write to the Free Software % Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. % Modified: 05/2003, Alex Wade [email protected]
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, Sample rate conversion, new res4 file.

{[ snackBarMessage ]}

Page1 / 5

ctf_resample - function ctf = ctf_resample(folder,newFreq...

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

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