Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq:how_can_i_read_all_channels_from_an_edf_file_that_contains_multiple_sampling_rates [2015/06/25 11:19]
robert
faq:how_can_i_read_all_channels_from_an_edf_file_that_contains_multiple_sampling_rates [2017/08/17 11:21] (current)
Line 5: Line 5:
 The representation of time-series data in FieldTrip requires that all channels have the same number of samples, since the data is stored in a Nchan by Nsamples matrix. ​ The representation of time-series data in FieldTrip requires that all channels have the same number of samples, since the data is stored in a Nchan by Nsamples matrix. ​
  
-EDF files can have channels with different sampling rates. By default the channels with the most common frequency will be read and represented by the low-level functions **[[:​reference:​ft_read_header]]**,​ **[[:​reference:​ft_read_data]]**,​ and by the high-level **[[:​reference:​ft_preprocessing]]** function. To represent all channels in a single FieldTrip raw data structure, it is necessary to up-sample (i.e. interpolate) the channels to the highest sampling rate. +EDF files can have channels with different sampling rates. By default the channels with the most common frequency will be read and represented by the low-level functions **[[:​reference:​ft_read_header]]**,​ **[[:​reference:​ft_read_data]]**,​ and by the high-level **[[:​reference:​ft_preprocessing]]** function. Using the //​chanindx//​ option to **[[:​reference:​ft_read_header]]**,​ you can specify another subset of channels from the original EDF file. To represent all channels in a single FieldTrip raw data structure, it is necessary to up-sample (i.e. interpolate) the channels to the highest sampling rate. 
  
 The **[[:​reference:​edf2fieldtrip]]** detects all sampling frequencies,​ reads the channels, up-samples and concatenates the channels in a single data structure. The **[[:​reference:​edf2fieldtrip]]** detects all sampling frequencies,​ reads the channels, up-samples and concatenates the channels in a single data structure.