LOGSPEC Plot mean log power spectra of submitted data on loglog scale using plotdata or plottopo formats

Usage: >> [spectra,freqs] = logspec(data,frames,srate);
>> [spectra,freqs] = logspec(data,frames,srate,'title', [loHz-hiHz],'chan_locs',rm_mean);

Inputs:
data   
input data (chans,frames*epochs)
frames   
data samples per epoch {default length(data)}
srate   
data sampling rate in Hz {default 256 Hz};
'title'   
plot title {default: none}
[loHz-hiHz]   
[loHz hiHz] plotting limits {default: [0:srate/2]}
'chan_locs'   
channel location file (ala topoplot) Else [rows cols] to plot data in a grid array
rm_mean   
[0/1] 1 -> remove log mean spectrum from all

Author: Scott Makeig, SCCN/INC/UCSD, La Jolla, 11-07-97

See also: plotdata, plottopo

See the matlab file logspec.m (may require other functions)

Back to functions