You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you check what your ft_default global variable is at the different stages? I suspect that the ft_default.toolbox.signal options are different at the moment the path is handled, and that your clear all clears the global variable.
Here is what I see with the same example (the Signal Processing Toolbox is not installed):
>> restoredefaultpath
>> which filtfilt
'filtfilt' not found.
>> addpath /home/github/fieldtrip
>> ft_defaults
...
>> which filtfilt
/home/github/fieldtrip/external/signal/filtfilt.m
>> clear all
>> ft_defaults
...
>> which filtfilt
'filtfilt' not found.
I observe that the MATLAB path changes when
ft_defaults
is called twice - in particular, the paths to the MATLAB toolbox replacements get removed.In this example, MATLAB's
ver
reports this:If
ft_defaults
is called a first time, MATLAB'spath
contains:If I then call:
MATLAB's
path
now does not have thestats
andsignal
toolbox any more:The text was updated successfully, but these errors were encountered: