Code covered by the BSD License  

Highlights from
mydate

mydate

by

 

16 Apr 2011 (Updated )

Augments MATLAB's date/time library for improved handling of epochs and formats commonly used in GPS

strend (str1, str2)
function answer = strend (str1, str2)
    case_sensitive = true;
    answer = strendi (str1, str2, case_sensitive);
end

%!test
%! myassert(strend('private', 'haha/private'));
%! myassert(~strend('Private', 'haha/private'));
%! myassert(~strend('private', 'haha/private2'));
%! myassert(~strend('packed:rcond:complexNotSupported', ...
%!     'packed:chol:complexNotSupported'));
%! out = strend('private', {'haha/private', 'haha/wrong', ''});
%! myassert(out, [true, false, false])

Contact us