freq = ft_freqanalysis(cfg, data_lp); Selecting trials using .trialinfo 默认情况下,“ft_freganalysis”(还有“ft_timelockanalysis”)不会保留单独trial的信息,但会输出所有trial的平均频率信息(在这种情况下为功率)。也是出于内存和速度的原因这可能是将试验分成条件并分别对每个条件进行频率分析的好时机。您...
The MATLAB toolbox for MEG, EEG and iEEG analysis. Contribute to fieldtrip/fieldtrip development by creating an account on GitHub.
function [freq] = ft_freqanalysis(cfg, data) % FT_FREQANALYSIS performs frequency and time-frequency analysis % on time series data over multiple trials % % Use as % [freq] = ft_freqanalysis(cfg, data) % % The input data should be organised in a structure as obtained from...
ft_eventtiminganalysis.m FIX #2162 - restored checksize functionality Jan 12, 2023 ft_examplefunction.m removed now irrelevant comments Nov 10, 2022 ft_freqanalysis.m ENH - code consistency improvement + broadcast feedback setting to lo… Jul 3, 2024 ft_freqanalysis_mvar.m cleaned up whitespa...
使用ft_timefrequencyanalysis函数执行时频分析。 [tfr, cfg] = ft_timefrequencyanalysis(cfg_tfr, data); 4. 可视化结果 最后,你可以使用FieldTrip提供的可视化工具来查看时频分析结果。 figure; plot_topoplot(cfg, tfr(:, :, findclosest(cfg_tfr.tapsmofreq, 10))); % 以10 Hz为例绘制拓扑图 title(...
预处理并将数据读入内存的最简单方法是是只使用数据集作为配置参数调用ft_preprocessing函数。 cfg = []; cfg.dataset = 'subj2.vhdr'; data_eeg = ft_preprocessing(cfg) >> data_eeg data_eeg = hdr: [1x1 struct] label: {64x1 cell} trial: {[64x1974550 double]} ...
5.统计分析:FieldTrip提供了许多统计函数,用于对EEG数据进行统计分析,例如`ft_eventanalyser`、`ft_freqanalysis`等。 6.可视化:FieldTrip还提供了许多可视化工具,用于显示EEG数据和结果,例如`ft_plot_topoplot`、`ft_plot_timeseries`等。 7.导出数据:最后,您可以将处理后的数据导出到其他软件中进行分析和可视化。Fi...
使用ft_appenddata将EEG和EOG合并为单个数据表示形式 使用ft_definetrial根据触发事件确定感兴趣的数据片段 使用ft_redefinetrial将连续数据分段到试验中 使用ft_redefinetrial将连续数据分段为一秒的片段 本教程中使用的数据集 在本教程中,我们将使用两个数据集,一个带有EEG数据,另一个带有MEG数据。
Alternative to the analysis of event-related fields, the experimental question may warrant the data to be analysed in the frequency domain. The transformation from the time domain into the frequency domain is achieved by ft_freqanalysis. 2.7.6. Source Reconstruction Reconstructing the location and ...
ft_analysispipeline ft_annotate ft_anonymizedata ft_appenddata ft_appendfreq ft_appendlayout ft_appendsens ft_appendsource ft_appendspike ft_appendtimelock ft_artifact_clip ft_artifact_ecg ft_artifact_eog ft_artifact_jump ft_artifact_muscle ft_artifact_nan ft_artifact_thres...