home *** CD-ROM | disk | FTP | other *** search
- % function out = sin_tr(freq,mag,tinc,lastt)
- %
- % Generates a VARYING matrix containing a sine signal:
- % FREQ - frequency (radians/second)
- % MAG - magnitude of sine signal
- % TINC - time increment
- % LASTT - final time (note the signal starts at time t=0)
- %
- % See also: COS_TR, SIGGEN, and STEP_TR.
-
- function out = sin_tr(freq,mag,tinc,lastt)
-
- if nargin < 4
- disp('usage: out = sin_tr(freq,mag,tinc,lastt)')
- return
- end
-
- tvec = 0:tinc:lastt;
- y = mag*sin(freq*tvec);
- out = vpck(y.',tvec.');
- %
- % Copyright MUSYN INC 1991, All Rights Reserved
-