Home > freetb4matlab > signal > square.m

square

PURPOSE ^

% s = square(t,duty)

SYNOPSIS ^

function v = square (t,duty)

DESCRIPTION ^

% s = square(t,duty)
% 
% Generate a square wave of period 2 pi with limits +1/-1.
%
% If the duty cycle is specified, the square wave is +1 for
% that portion of the time.
%
%                     on time
%    duty cycle = ------------------
%                 on time + off time
%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003