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 Sat 16-May-2009 00:04:49 by m2html © 2003