Back to the main page.

Bug 2034 - Error in ft_topoplotCC

Status CLOSED FIXED
Reported 2013-03-07 17:23:00 +0100
Modified 2013-05-09 08:32:30 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Lukoyanov Maxim - 2013-03-07 17:23:59 +0100

My result of ft_connectivityanalysis is: fdfourier = label: {19x1 cell} dimord: 'chan_chan_freq' cohspctrm: [19x19x24 double] freq: [2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25] dof: 4 cfg: [1x1 struct] When I try to use ft_topoplotCC I get an error: ??? Index exceeds matrix dimensions. Error in ==> ft_topoplotCC at 110 colorparam = freq.(cfg.colorparam)(:,:,fbin); Looks like result of freq = ft_checkdata(freq, 'cmbrepresentation', 'sparse'); give structure: freq = dimord: 'chancmb_freq' cohspctrm: [361x24 double] freq: [2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25] cfg: [1x1 struct] labelcmb: {361x2 cell} and (:,:,fbin) led to error


Jan-Mathijs Schoffelen - 2013-03-07 17:32:52 +0100

bash-3.2$ svn diff ft_topoplotCC.m Index: ft_topoplotCC.m =================================================================== --- ft_topoplotCC.m (revision 7599) +++ ft_topoplotCC.m (working copy) @@ -106,7 +106,7 @@ end if isfield(freq, cfg.colorparam) - colorparam = freq.(cfg.colorparam)(:,:,fbin); + colorparam = freq.(cfg.colorparam)(:,fbin); else colorparam = []; end _topoplotCC.m commit -m "bugfix - removed colon operator when indexing the colorparam" ft Sending ft_topoplotCC.m Transmitting file data . Committed revision 7604.