[FieldTrip] .dat file
hiba fouani
hibafouani123 at hotmail.com
Sat Mar 26 12:21:58 CET 2016
Dear Fieldtripper,
How to convert from .dat file to .mat?
Thank you
Hiba
> From: fieldtrip-request at science.ru.nl
> Subject: fieldtrip Digest, Vol 64, Issue 32
> To: fieldtrip at science.ru.nl
> Date: Sat, 26 Mar 2016 12:00:01 +0100
>
> Send fieldtrip mailing list submissions to
> fieldtrip at science.ru.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> or, via email, send a message with subject or body 'help' to
> fieldtrip-request at science.ru.nl
>
> You can reach the person managing the list at
> fieldtrip-owner at science.ru.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fieldtrip digest..."
>
>
> Today's Topics:
>
> 1. Re: Error with interpn when calling, ft_sourceinterpolate (gj)
> 2. Re: Error with interpn when calling, ft_sourceinterpolate
> (Schoffelen, J.M. (Jan Mathijs))
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 25 Mar 2016 13:29:21 +0100
> From: gj <gina.joue at univr.it>
> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> Subject: Re: [FieldTrip] Error with interpn when calling,
> ft_sourceinterpolate
> Message-ID: <56F52F21.1010900 at univr.it>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi Jan-Mathijs,
>
> Thanks for the prompt reply! Sorry I forgot to say...I tried it in
> Matlab R2016a under Linux and Matlab R2012a on a Mac...I suspect I must
> have made some error in the steps leading up to source interpolation --
> are there perhaps data checks I can do to narrow down what it could be?
>
> Thanks!
> Gina
>
>
> >
> > Message: 7
> > Date: Fri, 25 Mar 2016 09:16:12 +0000
> > From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen at donders.ru.nl>
> > To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> > Subject: Re: [FieldTrip] Error with interpn when calling
> > ft_sourceinterpolate
> > Message-ID: <D5A86EBD-56B4-4898-96AE-FB993A8B320A at donders.ru.nl>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Hi Gina,
> >
> > What version of MATLAB and operating system are you using? I cannot
> get your error reproduced, and from the message it seems a low-level
> MATLAB thing, because it complains about the number of input arguments
> to a function that is provided by MATLAB. (by the way, the error message
> that you got refers to line 152 in interpn, the same error check is done
> in my version of interpn at line 151?., which suggests a different
> version of the m-file. I was using matlab2014b on a windows machine)
> >
> > Best,
> > Jan-Mathijs
> >
> >
> >
> >> On 24 Mar 2016, at 12:30, gj <gina.joue at univr.it> wrote:
> >>
> >> Hi FieldTrip community,
> >>
> >> I am using FieldTrip ver.20160309 and am getting the error:
> >>
> >> Error using interpn (line 152)
> >> Wrong number of input arguments.
> >>
> >> Error in ft_sourceinterpolate>my_interpn (line 673)
> >> av(sel) = interpn(fv, ax(sel), ay(sel), az(sel), interpmethod);
> >>
> >> while trying to interpolate onto a template brain after having done
> source reconstruction. This question had been posted before several
> years ago but don't know how to "fix" the problem:
> >>
> >> http://mailman.science.ru.nl/pipermail/fieldtrip/2013-March/006347.html
> >>
> >> Here is my code leading to the error when calling ft_sourceinterpolate:
> >>
> >> %-- snippet--%
> >> % sensor level Fourier spectra
> >> cfg = [];
> >> cfg.method = 'mtmfft';
> >> cfg.output = 'fourier';
> >> cfg.keeptrials = 'yes';
> >> cfg.tapsmofrq = 2;
> >> cfg.foi = 13;
> >> freqsens = ft_freqanalysis(cfg, data);
> >>
> >> % source reconstruction
> >> cfg = [];
> >> cfg.frequency = freqsens.freq;
> >> cfg.elec = elec;
> >> cfg.method = 'eloreta';
> >> cfg.grid = lf;
> >> cfg.vol = vol;
> >> cfg.keeptrials = 'yes';
> >> cfg.rawtrial = 'yes';
> >> source = ft_sourceanalysis(cfg, freqsens);
> >>
> >> % project to direction explaining most source variance
> >> cfg = [];
> >> cfg.projectmom = 'yes';
> >> source_proj = ft_sourcedescriptives(cfg,source);
> >>
> >> source_proj.dim = template_grid.sourcemodel.dim;
> >> source_proj.pos = template_grid.sourcemodel.pos;
> >>
> >> %%....... interpolate onto the MNI template brain
> >> cfg = [];
> >> cfg.voxelcoord = 'no';
> >> cfg.parameter = 'avg.pow';
> >> cfg.interpmethod = 'nearest';
> >> source_int = ft_sourceinterpolate(cfg, source_proj, template_mri);
> >>
> >> %-- end snippet--%
> >>
> >>
> >> Any help greatly appreciated!
> >> Gina
> >> _______________________________________________
> >> fieldtrip mailing list
> >> fieldtrip at donders.ru.nl
> >> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 25 Mar 2016 13:38:57 +0000
> From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen at donders.ru.nl>
> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> Subject: Re: [FieldTrip] Error with interpn when calling,
> ft_sourceinterpolate
> Message-ID: <40EEF91F-360C-46B7-9E24-2163FEA99CF6 at donders.ru.nl>
> Content-Type: text/plain; charset="utf-8"
>
>
> Hi Gina,
>
> What is the content of the source_proj.pos and source_proj.dim fields before you replace them with the values from the template grid?
> Specifically, what?s size(source_proj.pos,1) and source_proj.dim?
>
> Best,
> Jan-Mathijs
>
> > On 25 Mar 2016, at 13:29, gj <gina.joue at univr.it> wrote:
> >
> > Hi Jan-Mathijs,
> >
> > Thanks for the prompt reply! Sorry I forgot to say...I tried it in Matlab R2016a under Linux and Matlab R2012a on a Mac...I suspect I must have made some error in the steps leading up to source interpolation -- are there perhaps data checks I can do to narrow down what it could be?
> >
> > Thanks!
> > Gina
> >
> >
> >>
> >> Message: 7
> >> Date: Fri, 25 Mar 2016 09:16:12 +0000
> >> From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen at donders.ru.nl>
> >> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> >> Subject: Re: [FieldTrip] Error with interpn when calling
> >> ft_sourceinterpolate
> >> Message-ID: <D5A86EBD-56B4-4898-96AE-FB993A8B320A at donders.ru.nl>
> >> Content-Type: text/plain; charset="utf-8"
> >>
> >> Hi Gina,
> >>
> >> What version of MATLAB and operating system are you using? I cannot get your error reproduced, and from the message it seems a low-level MATLAB thing, because it complains about the number of input arguments to a function that is provided by MATLAB. (by the way, the error message that you got refers to line 152 in interpn, the same error check is done in my version of interpn at line 151?., which suggests a different version of the m-file. I was using matlab2014b on a windows machine)
> >>
> >> Best,
> >> Jan-Mathijs
> >>
> >>
> >>
> >>> On 24 Mar 2016, at 12:30, gj <gina.joue at univr.it> wrote:
> >>>
> >>> Hi FieldTrip community,
> >>>
> >>> I am using FieldTrip ver.20160309 and am getting the error:
> >>>
> >>> Error using interpn (line 152)
> >>> Wrong number of input arguments.
> >>>
> >>> Error in ft_sourceinterpolate>my_interpn (line 673)
> >>> av(sel) = interpn(fv, ax(sel), ay(sel), az(sel), interpmethod);
> >>>
> >>> while trying to interpolate onto a template brain after having done source reconstruction. This question had been posted before several years ago but don't know how to "fix" the problem:
> >>>
> >>> http://mailman.science.ru.nl/pipermail/fieldtrip/2013-March/006347.html
> >>>
> >>> Here is my code leading to the error when calling ft_sourceinterpolate:
> >>>
> >>> %-- snippet--%
> >>> % sensor level Fourier spectra
> >>> cfg = [];
> >>> cfg.method = 'mtmfft';
> >>> cfg.output = 'fourier';
> >>> cfg.keeptrials = 'yes';
> >>> cfg.tapsmofrq = 2;
> >>> cfg.foi = 13;
> >>> freqsens = ft_freqanalysis(cfg, data);
> >>>
> >>> % source reconstruction
> >>> cfg = [];
> >>> cfg.frequency = freqsens.freq;
> >>> cfg.elec = elec;
> >>> cfg.method = 'eloreta';
> >>> cfg.grid = lf;
> >>> cfg.vol = vol;
> >>> cfg.keeptrials = 'yes';
> >>> cfg.rawtrial = 'yes';
> >>> source = ft_sourceanalysis(cfg, freqsens);
> >>>
> >>> % project to direction explaining most source variance
> >>> cfg = [];
> >>> cfg.projectmom = 'yes';
> >>> source_proj = ft_sourcedescriptives(cfg,source);
> >>>
> >>> source_proj.dim = template_grid.sourcemodel.dim;
> >>> source_proj.pos = template_grid.sourcemodel.pos;
> >>>
> >>> %%....... interpolate onto the MNI template brain
> >>> cfg = [];
> >>> cfg.voxelcoord = 'no';
> >>> cfg.parameter = 'avg.pow';
> >>> cfg.interpmethod = 'nearest';
> >>> source_int = ft_sourceinterpolate(cfg, source_proj, template_mri);
> >>>
> >>> %-- end snippet--%
> >>>
> >>>
> >>> Any help greatly appreciated!
> >>> Gina
> >>> _______________________________________________
> >>> fieldtrip mailing list
> >>> fieldtrip at donders.ru.nl
> >>> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> >>
> > _______________________________________________
> > fieldtrip mailing list
> > fieldtrip at donders.ru.nl
> > http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
> End of fieldtrip Digest, Vol 64, Issue 32
> *****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160326/8079e0bb/attachment-0001.html>
More information about the fieldtrip
mailing list