eeglab icon indicating copy to clipboard operation
eeglab copied to clipboard

Error with std_erspplot when ERSP precomp have no baseline?

Open markpayumo opened this issue 6 months ago • 1 comments

Description

I get this error:

Warning: std_readdata ignored at least one parameters: "subbaseline"
Reading subjects' data or looking up measure values in EEGLAB cache

Unrecognized function or variable 'dataTmp'.

Error in std_readdata (line 381)
    correspInd = 1:length(dataTmp); % identity for channels
                          ^^^^^^^
Error in std_erspplot (line 253)
    [STUDY, allersp, alltimes, allfreqs, events, paramsersp] = std_readdata(STUDY, ALLEEG, 'channels', opt.channels, 'timerange', params.timerange, ...
                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

when I run std_erspplot

[STUDY, erspdata, ersptimes, erspfreqs] = std_erspplot(STUDY,ALLEEG, 'channels',{'E1', 'E2', 'E3'...});

I precomputed the ERSPs without baseline. [STUDY ALLEEG customRes] = std_precomp(STUDY, ALLEEG, {}, 'ersp', 'on', 'recompute', 'on','erspparams', {'cycles' [13 0.1] 'nfreqs' 50 'freqs' [13 30] 'ntimesout' 100 'freqscale' 'linear' 'baseline' NaN});

Does precomputing without a baseline cause these issues? I would prefer not to precompute with baseline subtraction as I like to do my own baseline correction


#### Steps to Reproduce
  1. Run ERSP precomputation
  2. Extract erspdata using std_erspplot

#### Expected behavior: Give me erspdata output
#### Actual behavior: Gives me error
#### Versions
OS version [Sequoia 15.3.2]
Matlab version [R2024b]
EEGLAB version [EEGLAB2025]

markpayumo avatar Apr 16 '25 02:04 markpayumo