eeg_plot

# eeg_plot - function Fig =...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function Fig = eeg_plot(time,erp,scale,interval,width,titles) % eeg_plot - create a report style plot of ERP data % % Usage: eeg_plot(time,erp,scale,interval,width,titles) % % time - an Mx1 column vector of times (in msec) for each row of erp % % erp - an MxN matrix, M rows of time points, N channels % % scale - a 1x4 row vector = [xmin,xmax,ymin,ymax], the % defaults are: min(time), max(time) % -/+ max(max(abs(erp))) % % interval - a 1x2 row vector = [xint, yint], to specify the % x,y tick mark intervals (defaults are 100 msec and 1 uV) % % width - 1 = journal page width (default, 15.8 cm) % 0 = journal column width (7.4 cm) % % plot height is (2/3) * width % % titles - a text struct with (default) fields: % % titles.title - figure title ('') % titles.xlabel - x label ('msec') % titles.xalign - text alignment ('center') % titles.xxpos - position of x label relative to x axis () % titles.xypos - position of x label relative to y axis () % titles.ylabel - y label ('\muV', tex for uV) % titles.yalign - text alignment ('center') % titles.yypos - position of y label relative to y axis () % titles.yxpos - position of y label relative to x axis () % % The figure may appear small on screen, but it is formatted to % print in either the width of a journal page (15.8 cm) or the % width of a journal column (7.5 cm). % To adjust it to your preferred dimensions, hack the code, which is % well documented. If you want different colours or all black lines, % hack the code at the plot command. Alternatively, use % a graphics package to convert specific colours or convert all % colours to greyscale. % % \$Revision: 1.1 \$ \$Date: 2009/04/28 22:13:52 \$ % Licence: GNU GPL, no express or implied warranties % History: 07/2000, Darren.Weber_at_radiology.ucsf.edu % Adapted from (c) Drea Thomas, June 1995 % MathWorks newsletter % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Requirements: % Grids % Legend on top of diagram if ~exist('interval','var'), interval = ; end % ----- Set the figure dimensions and scaling -----...
View Full Document

## This note was uploaded on 10/06/2010 for the course ENG 42325 taught by Professor Lagerstrom during the Spring '10 term at UC Davis.

### Page1 / 5

eeg_plot - function Fig =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online