Code covered by the BSD License  

Highlights from
matlab2fmex

image thumbnail
from matlab2fmex by Ben Barrowes
matlab2fmex.m is a small translator which aims to convert numerical M-files to Fortran90 mex.

out=findstrexact(strin,strbig)
function out=findstrexact(strin,strbig)
%%%out=[];
%%%if length(strbig)>=length(strin)
%%% for i=1:(length(strbig)-length(strin)+1)
%%%  if strncmp(strin,strbig(i:length(strbig)),length(strin))
%%%   out=[out i];
%%%  end
%%% end
%%%end

%out=regexp(strbig,strin);

out=strfind(strbig,strin);

Contact us at files@mathworks.com