User`s guide
Sine Wave
5-398
5Sine Wave
Purpose Generate a continuous or discrete sine wave.
Library DSP Sources
Description The Sine Wave block generates a multichannel real or complex sinusoidal 
signal, with independent amplitude, frequency, and phase in each output 
channel. A real sinusoidal signal is generated when the 
Output complexity 
parameter is set to 
Real, and is defined by an expression of the type
where A is specified by the 
Amplitude parameter, f is specified in hertz by the 
Frequency parameter, and φ is specified in radians by the Phase parameter. 
A complex exponential signal is generated when the 
Output complexity 
parameter is set to 
Complex, and is defined by an expression of the type
Each parameter value (A, f, φ) for real and complex sinusoids can be a scalar or 
length-N vector, where N is the desired number of channels in the output. If at 
least one parameter is specified as a length-N vector, scalar values specified for 
the other parameters are scalar expanded to length N (i.e., they are applied to 
every channel).
For example, specify
•
Amplitude = [123]
•Frequency = [1000 500 250]
•Phase = [0 0 pi/2]
with Output complexity set to Real to generate a three-channel output 
containing the real sinusoids below.
yA 2πft φ+()sin=
yAe
j 2πft φ+()
A 2πft φ+()cos j 2πft φ+()sin+{}==










