The Cosine block outputs a cosine wave signal of:
•Time-based type
•Sample-based type
The time-based type cosine wave is defined by the following equation.

The sample-based type cosine wave is defined by the following equation.

where,
t is the simulation time
y is the output.
Dialog box

Figure 1 Cosine dialog box
Parameters
|
Parameter(s) |
Description | |
|
Cosine Type |
Select Time-based or Sample-based. | |
|
Amplitude |
Enter the amplitude of cosine wave. | |
|
Bias |
Enter the offset value of cosine wave. | |
|
Frequency (rad/sec) |
Enter the frequency of time-based cosine wave. | |
|
Phase (rad) |
Enter the phase angle of time-based cosine wave. | |
|
Samples per Period |
Speriod |
Enter the number of samples per period for the sample-based cosine wave. |
|
Number of Offset Samples |
Noffset |
Enter the discrete phase offset in the number of sample times of sample-based cosine wave. |
|
Sample Time |
tsample |
Enter the time interval between samples •If the cosine type is the : •Time-based and the sample time is zero, the block outputs continuous signal of cosine wave. •Time-based and the sample time is greater than zero, the block outputs discrete signal of cosine wave. •Sample-based, the sample time must be greater than zero. |