Back to the main page.

Bug 2056 - ft_defaults only runs once per matlab session

Reported 2013-03-15 09:16:00 +0100
Modified 2014-01-29 13:28:42 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Eelke Spaak
Depends on:
See also:

Eelke Spaak - 2013-03-15 09:16:18 +0100

This is a problem when people do restoredefaultpath;ft_defaults; multiple times per session.

Robert Oostenveld - 2013-03-15 10:54:08 +0100

solution: prior to if initialized return end do a check on "which ft_hastoolbox". If that is missing, utilities is not on the path and probably the rest neither. Or a simple option would be to do if initialized && exist('ft_hastoolbox', 'file') return end

Eelke Spaak - 2013-03-15 13:05:24 +0100

fixed per Robert's suggestion, rev 7668.

Eelke Spaak - 2014-01-29 13:28:42 +0100

changing lots of bugs from resolved to closed.