Back to the main page.

Bug 1786 - sphericalSplineInterpolate - does not converge

Status CLOSED FIXED
Reported 2012-10-22 11:38:00 +0200
Modified 2014-03-12 12:21:32 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jörn M. Horschig
URL:
Tags:
Depends on:
Blocks:
See also:

Yoel Sher - 2012-10-22 11:38:19 +0200

Hello, When I run sphericalSplineInterpolate.m on my data it gets stuck on line 55 at: "iC = pinv(C);". Thanks Yoel


Jörn M. Horschig - 2012-10-22 12:05:43 +0200

Interesting, would you mind sharing the piece of data and snippet of code that does not converge?


Yoel Sher - 2012-10-22 12:30:47 +0200

Created attachment 350 data and script


Yoel Sher - 2012-10-22 12:31:42 +0200

Thanks. I had attached the data sample and the script. You can run it with : fixelec(z1,interpolate_at_z,electrodes_names_to_keep) Thanks


Jörn M. Horschig - 2012-10-22 13:43:21 +0200

thanks, I'm gonna have a look!


Jörn M. Horschig - 2012-10-24 10:14:11 +0200

I guess I have to call the function more like: fixelec(electrodes_names_to_keep, interpolate_at_z,z1) given that it is defined as fixelec(labels, badchans,data), right? Anyway, I got the problem that I do not have the elec_1020select function which is called in your script, would you mind sharing that as well?


Yoel Sher - 2012-10-24 11:08:35 +0200

Created attachment 352 cfgimport1.03 plugin


Yoel Sher - 2012-10-24 11:09:04 +0200

(In reply to comment #5) Hi, thanks again. Yes, you are right with how to call the function. The elec_1020select function is taken from cftimport1.03 plugin.(Somehow I had assumed that you have it already, it exists ,for example in EEGLAB). Anyway I had attached it again. Thanks


Jörn M. Horschig - 2012-10-31 15:32:14 +0100

hm, for me your script works perfectly fine, both on a windows 32bit as on a linudx 64bit machine (both tested with Matlab2009b). could you let me know what OS and what matlab version you are using?


Yoel Sher - 2012-11-01 12:18:45 +0100

(In reply to comment #8) Well, for me it started working again. I believe the reason might be because I used win8 pre-release version and only now Microsoft updated something with the final release. Many thanks for your time, and sorry for the bothering.


Yoel Sher - 2012-11-01 12:19:49 +0100

Probbably a win8 pre-release bug.