Code covered by the BSD License  

Highlights from
General Extra Toolbox

General Extra Toolbox

by

 

11 Feb 2002 (Updated )

Generic functions for matrix manipulation, image processing, etc.

rmaths(X)
function rmaths(X)
%
% RMPATHS    Remove directory to search path (accepts cells and matrix)
%
%    RMPATHS(path) is the same as RMPATH(path) except that is accepts cell 
%    arrays and string matrix as inputs.
%
%    If used without arguments, RMPATHS removes the current directory from the path.
%

switch nargin
case 0
   rmpath(cd)   
case 1
   if ~iscell(X)
      X = cellstr(X);
   end
   rmpath(X{:})      
   
otherwise
   error('Too many parameters')
end

Contact us