hfun.m
Upload User: hfch80
Upload Date: 2007-10-25
Package Size: 3637k
Code Size: 0k
Development Platform:

Matlab

  1. function [y] = hfun(x,t);
  2. % PURPOSE : Measurement model function.
  3. % INPUTS  : - x:  The evaluation point in the domain.
  4. % OUTPUTS : - y: The value of the function at x.
  5. % AUTHORS  : 
  6. % DATE     : 
  7. if nargin < 2, error('Not enough input arguments.'); end
  8. if t<=30
  9.   y = (x.^(2))/5; 
  10. else
  11.   y = -2 + x/2; 
  12. end;