Back to the main page.

Bug 1802 - Error Message Using ft_volumewrite With Tutorial Data

Status CLOSED FIXED
Reported 2012-10-31 01:06:00 +0100
Modified 2018-03-10 21:59:36 +0100
Product: FieldTrip
Component: preproc
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 trivial
Assigned to: Lilla Magyari
URL:
Tags:
Depends on:
Blocks:
See also:

Andrew Meier - 2012-10-31 01:06:19 +0100

I'm not sure if this is a bug or not, but I was wondering if I could get help with an error message I've been getting. I'm going through the tutorial on "Source reconstruction of event-related fields using minimum-norm estimate" with the tutorial data, and when I enter the command "ft_volumewrite(cfg, seg);" MATLAB gives me the following error message: ??? Index exceeds matrix dimensions. Error in ==> ft_volumewrite at 124 cfg.parameter = cfg.parameter{1}; Do you know if I have done something wrong in the tutorial? I've attached a .mat file of my workspace up until that point. Please let me know if there's anything else I should send. Thanks very much.


Robert Oostenveld - 2012-10-31 09:05:08 +0100

Hi Andrew, thanks for the report. I can imagine it being related to some recent changes to the segmentation datatype (see "help ft_datatype_segmentation"). Could you attach the mat file with the workspace to this bug report? Or if it is too large, please share it through one of the methods listed at the bottom of http://fieldtrip.fcdonders.nl/bugzilla


Lilla Magyari - 2012-11-02 21:15:35 +0100

Hi Andrew, thanks a lot for your message. The problem occurred during the call to ft_volumesegment, because the anatomy field got deleted from the output segmentation structure. I fixed this now. If you create the seg structure again with ft_volumesegment, and then run ft_volumewrite, it should work fine. The FieldTrip version with the updated function should be available for download in 24 hours (as latest). Please, let me know if you experience further problems. Best, Lilla


Robert Oostenveld - 2012-11-06 09:02:21 +0100

On 1 Nov 2012, at 17:05, Andrew Meier wrote: > .mat file of the workspace I had up until receiving the error message I copied the file to /home/common/matlab/fieldtrip/data/test/bug1802


Lilla Magyari - 2012-11-06 12:08:11 +0100

(In reply to comment #3) "Thanks! It appears to be working now, when I use the version "fieldtrip-lite-20121104." -Andrew"