function out = isstrcmp(arg1,arg2)
% ISSTRCMP  Compare two arguments.  True only if both are strings.
%           ISSTRCMP is robust in the case that one or both args are not strings.
%           
% USAGE     ISSTRCMP(ARG1,ARG2)
%

% Deirdre Byrne, L-DEO 96/3/23

if nargin == 2
  if isstr(arg1) & isstr(arg2)
    if strcmp(arg1,arg2)
      out = 1;
    else
      out = 0;
    end
  else
    out = 0;
  end
else
  error('isstrcmp requires 2 arguments')
  return
end