function fs = evaluatefs(str)
%EVALUATEFS  Evaluate sampling frequency input.
%   FS = EVALUATEFS(STR) evaluates user input string STR and returns
%   scalar FS.  An error message is given if FS is negative, zero,
%   not numeric, or not a scalar.

%   Author: T. Bryan
%   Copyright (c) 1988-1999 The MathWorks, Inc. 
%   $Revision: 1.1 $  $Date: 2000/06/06 18:26:05 $

[fs,errmsg] = evaluatevars(str);
error(errmsg)
if ~isnumeric(fs)
  error('Fs must be numeric.')
end
if isempty(fs) | length(fs)>1
  error('Fs must be a scalar.');
end
if fs<=0
  error('Fs must be positive.')
end

% [EOF] evaluatefs.m