Home > freetb4matlab > specfun > heaviside.m

heaviside

PURPOSE ^

% Compute the Heaviside step function.

SYNOPSIS ^

function y = heaviside (x, zero_value = 0.5)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} heaviside(@var{x})
% @deftypefnx{Function File} {} heaviside(@var{x}, @var{zero_value})
% Compute the Heaviside step function.
%
% The Heaviside function is defined as
%
% @example
%   Heaviside (@var{x}) = 1,   @var{x} > 0
%   Heaviside (@var{x}) = 0,   @var{x} < 0
% @end example
%
% @noindent
% The value of the Heaviside function at @var{x} = 0 is by default 0.5,
% but can be changed via the optional second input argument.
% @seealso{dirac}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003