Code covered by the BSD License  

Highlights from
Generate help files from m-files

image thumbnail
from Generate help files from m-files by Wolfgang Garn
Help files are generated from m-files.

allSlashes(str)
function pos = allSlashes(str)
% allSlashes  Returns the postion of all slashes ('/','\')
%
% Example
% Reads all directories in the current path.
%+ allSlashes( 'C:\MATLAB704\work\publish\wg_publish.m')
%
%% Signature
% Author: W.Garn
% E-Mail: wgarn@yahoo.com
% Date: 2005/12/01 20:00:00 
% 
% Copyright 2005 W.Garn
%
Ib = strfind(str,'\');
Is = strfind(str,'/');
pos = union(Ib,Is);

Contact us at files@mathworks.com