Back to the main page.
Bug 860 - ft_neighbourplot crashes
Status | CLOSED FIXED |
Reported | 2011-08-03 16:22:00 +0200 |
Modified | 2011-09-06 14:37:08 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P1 normal |
Assigned to: | Jörn M. Horschig |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Eelke Spaak - 2011-08-03 16:22:07 +0200
Executing this: >> cfg = []; cfg.method = 'template'; cfg.template = 'CTF275_neighb.mat'; cfg.feedback = 'yes'; neighbours = ft_neighbourselection(cfg,data); results in this: Trying to load sensor neighbours from a template Successfully loaded neighbour structure from CTF275_neighb.mat there are on average 7.5 neighbours per channel Using the gradiometer configuration from the dataset. undoing the invcomp balancing Warning: the linear projection for the montage is not full-rank, the resulting data will have reduced dimensionality > In ft_apply_montage at 76 In ft-src/private/undobalancing at 29 In ft-src/private/channelposition at 31 In ft_neighbourplot at 82 In ft_neighbourselection at 199 undoing the comp balancing ??? Attempted to access proj(274,1); index out of bounds because size(proj)=[273,3]. Error in ==> ft_neighbourplot at 163 hs(i) = line(proj(i, 1), proj(i, 2), proj(i, 3), ... Error in ==> ft_neighbourselection at 199 ft_neighbourplot(cfg, data); 163 hs(i) = line(proj(i, 1), proj(i, 2), proj(i, 3), ...
Eelke Spaak - 2011-08-03 16:24:17 +0200
Also, I am a bit puzzled by ft_neighbourplot's behaviour. What is it doing with my gradiometer structure, if I explicitly use neighbours from a template?
Jörn M. Horschig - 2011-08-04 09:33:44 +0200
hey hey, the problem should be due to having a different amount of sensors in the neighbourhood structure than there are in the data. The template got 275 channels, while the neighbourhood structure of your data probably only got 273. I will work on that. To answer your other question: For plotting, the function needs information about the position of the sensors. In order to plot in 3D space, it reads from the grad to get the exact sensor positions.