Calculates bandpower values in the specified frequency band. This function calculates bandpower values in the specified frequency band. Usage: bp = getBandpower(s, h, triallen, f, trls, class, rmartif, submean); 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 band (Hz) Optional input parameters: trls ... Trials class ... Class rmartif ... Remove artifacts submean ... Subtract mean signal Output parameters: bp ... Bandpower