Calculates time-frequency (ERDS) maps. This function calculates time-frequency (ERDS) maps by using either FFT or wavelets to estimate the power in specific frequency bands. Maps can be calculated for more than one channel at once. Usage: r = calcErdsMap(s, h, startend, f, trls, class, rmartif, ref, submean, alpha, montage, cue, name); Input parameters: s ... Input signal (as obtained by sload) h ... Header structure (as obtained by sload) startend ... Start and end point within trial (s) f ... Frequency range (Hz) Optional input parameters: trls ... Trials to use (default: all) class ... Classes to use (default: all) rmartif ... Remove artifacts (default: false) ref ... Reference interval (in s) (default: [] (whole trial)) submean ... Subtract mean signal first (default: yes) alpha ... Significance level (default: 0.05) montage ... Electrode montage (default: [] (none)) cue ... Location of cue (in s) (default: [] (none)) name ... Name of the data set (or subject) (default: [] (none)) Output parameter: r ... Structure containing the results