eeglab
                                
                                 eeglab copied to clipboard
                                
                                    eeglab copied to clipboard
                            
                            
                            
                        Error with std_erspplot when ERSP precomp have no baseline?
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
- Run ERSP precomputation
- 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] |