Back to the main page.

Bug 2775 - ft_electrodrealign does not find function (not in /utilities/private)

Status CLOSED FIXED
Reported 2014-12-10 17:22:00 +0100
Modified 2015-02-11 10:40:13 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 minor
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Daniel Miklody - 2014-12-10 17:22:27 +0100

Hey! While runnig ft_electroderealign with cfg.method='template and headshape supplied, I get the follwing error: Undefined function 'lmoutrn' for input arguments of type 'double'. Error in ptriprojn (line 21) [la, mu, dist, proj] = lmoutrn(v1, v2, v3, r); Error in project_elec (line 43) [proj,dist] = ptriprojn(pnt(tri(:,1),:), pnt(tri(:,2),:), pnt(tri(:,3),:), elc(i,:), 1); Error in ft_warp_error (line 57) el = project_elec(input, target.pnt, target.tri); Error in fminunc (line 253) f = feval(funfcn{3},x,varargin{:}); Error in ft_warp_optim (line 129) rf = optimfun(errorfun, ri, options, pos1, pos2, 'rigidbody'); Error in ft_electroderealign (line 333) [norm.chanpos, norm.m] = ft_warp_optim(elec.chanpos, headshape, cfg.warp); Caused by: Failure in initial user-supplied objective function evaluation. FMINUNC cannot continue. Just copying the content of /private to utilities/private solves the problem. Daniel


Robert Oostenveld - 2014-12-10 18:38:45 +0100

thanks, that was quickly fixed. I hope I now have all files in utilities/private that are needed. mac011> svn propset autosync true private/lmoutrn.m property 'autosync' set on 'private/lmoutrn.m' mac011> svn propset autosync true private/pinvNx2.m property 'autosync' set on 'private/pinvNx2.m' mac011> svn copy private/lmoutrn.m private/pinvNx2.m utilities/private/ A utilities/private/lmoutrn.m A utilities/private/pinvNx2.m mac011> svn commit utilities/private/ Adding utilities/private/lmoutrn.m Adding utilities/private/pinvNx2.m Committed revision 10035.


Johanna - 2015-02-04 13:23:13 +0100

Hi Robert, I think you missed one... I just ran into the same problem (I have just updated my SVN) but it is the function 'plinprojn' that is missing from utilities/private. Thank you, Johanna


Johanna - 2015-02-04 13:27:03 +0100

I just fixed it: zumerj@psychl-132432-1:~/home/fieldtrip_svn$ svn propset autosync true private/plinprojn.m property 'autosync' set on 'private/plinprojn.m' zumerj@psychl-132432-1:~/home/fieldtrip_svn$ svn copy private/plinprojn.m utilities/pri printstruct.m private/ zumerj@psychl-132432-1:~/home/fieldtrip_svn$ svn copy private/plinprojn.m utilities/pri printstruct.m private/ zumerj@psychl-132432-1:~/home/fieldtrip_svn$ svn copy private/plinprojn.m utilities/private/ A utilities/private/plinprojn.m zumerj@psychl-132432-1:~/home/fieldtrip_svn$ svn commit utilities/private/plinprojn.m Adding utilities/private/plinprojn.m Committed revision 10159.


Johanna - 2015-02-04 13:29:21 +0100

seems fixed now.


Robert Oostenveld - 2015-02-11 10:40:13 +0100

Closed several bugs that were recently resolved. Please reopen if you are not happy with the resolution.