Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[97fff8]: ltfatstop.m Maximize Restore History

Download this file

ltfatstop.m    28 lines (21 with data), 559 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function ltfatstop()
%LTFATSTOP Stops the LTFAT toolbox
% Usage: ltfatstop;
%
% `ltfatstop` removes all LTFAT subdirectories from the path.
%
% See also: ltfatstart
% AUTHOR : Peter L. Søndergaard.
fullpath=strsplit(path,pathsep);
bp=ltfatbasepath;
% Remove the file separator at the end
bp=bp(1:end-1);
bplen=numel(bp);
for line=fullpath
% Strip the cell array container away
thispath=line{1};
if numel(thispath)>=bplen && strcmp(thispath(1:bplen),bp)
rmpath(thispath);
disp(thispath)
end;
end;