Home > biosig > t310 > getMontage.m

getMontage

PURPOSE ^

Calculates spatial filter matrix for Laplacian derivations.

SYNOPSIS ^

function [lap, plot_index, n_rows, n_cols] = getMontage(montage)

DESCRIPTION ^

 Calculates spatial filter matrix for Laplacian derivations.
 
 Returns a spatial filter matrix used to calculate Laplacian derivations as
 well as indices used to plot in a topographical layout.
 Assuming that the data vector s is of dimension <samples x channels>, the
 Laplacian derivation s_lap can then be calculated by s_lap = s * lap.

 Usage:
   [lap, plot_index, n_rows, n_cols] = getMontage(montage);

 Input parameters:
   montage ... Electrode montage, either a predefined string (currently, 
               '16ch', '22ch', '28ch' and '60ch' are available) or a matrix
               containing ones where the electrodes are located and zeros
               elsewhere

 Output parameters:
   lap        ... Laplacian filter matrix
   plot_index ... Indices for plotting the montage
   n_rows     ... Number of rows of the montage
   n_cols     ... Number of columns of the montage

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003