Back to the main page.

Bug 2307 - ft_dipolefitting

Status CLOSED FIXED
Reported 2013-10-02 21:28:00 +0200
Modified 2016-05-09 08:48:35 +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:

Ekaterina - 2013-10-02 21:28:20 +0200

Dear Robert, are you ignoring me? ft_dipolefitting does not work with option cfg.frequency. There is incorrect check dimension in \fieldtrip-20131001\private\dimindex.m in row 52. any(dim>ndims(A)) (dim=3 and ndims(A)=2)always is 1. \fieldtrip-20131001\private\freq2timelock.m in rows 45 and 53 channelselection is changed on ft_channelselection. Best regards, Ekaterina


Jan-Mathijs Schoffelen - 2013-10-10 10:53:41 +0200

This is sufficiently unclear, that it deserves a wontfix status. If a more polite and detailed(*) report is filed, we may reconsider addressing this at some point. (*) a detailed report should contain: -ideally an attachment with a snippet of code + data allowing us to reproduce the problem -some pointers as to how to fix it.


Ekaterina - 2013-10-16 12:51:49 +0200

Created attachment 531 error in ft_dipolefitting This error occurs in ft_dipolefitting when in ft_freqanalysis cfg.foilim is single number


Ekaterina - 2013-10-16 12:53:25 +0200

load('standard_bem.mat'); cfg = []; cfg.method = 'mtmfft'; cfg.output = 'fourier'; cfg.keeptrials = 'yes'; cfg.taper = 'hanning'; cfg.foilim = [3 3]; freq = ft_freqanalysis(cfg,data1); cfg = []; cfg.vol = vol; cfg.elec = elecR; cfg.numdipoles=1; cfg.frequency =3; cfg.dip.pos = [-3 -1 5]; cfg.gridsearch = 'no'; cfg.nonlinear = 'yes'; cfg.model = 'regional'; dip = ft_dipolefitting(cfg, freq);


Ekaterina - 2013-10-18 13:58:34 +0200

Dear Robert, I probably do not understand, but why the function freq2timelock.m returns a spectrum? And writes, that output data has dimension data.dimord=chan_time


Jan-Mathijs Schoffelen - 2016-05-05 20:33:55 +0200

For lack of follow up on this one, I close it.