Diff of /ltfatstop.m [000000] .. [19b21a] Maximize Restore

  Switch to unified view

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