image thumbnail

Test Signals Generation with Matlab Implementation

version (5.14 KB) by Hristo Zhivomirov
Generation of test signals for measurements and other purposes.


Updated 12 Aug 2017

View License

The present submission is a set of eight Matlab functions that provides a generation of:
1) Sine wave signal
2) Square wave signal
3) Triangular wave signal (incl. Sawtooth)
4) Sweep signal
5) White noise signal
6) Pink noise signal
7) Sinc wave signal (sin(x)/x)
Each function generates a specific type of signal with arbitrary duration, pause, and number of repetitions of the “wave packet” / “wave train” (if any).

Two examples are given to clarify the usage of the functions. For convenience, the input and output arguments are given in the beginning of each function.

The code is based on the theory described in:

[1] Хр. Живомиров, И. Илиев. Генериране на измервателни сигнали с приложение на Matlab. Национална конференция с м.у. „Акустика I 2013”, 11 Октомври 2013, Варна / Списание Акустика, ISSN: 1312-4897, год. XV, бр. 15, стр. 87-90, 2013.

[2] M. Mandal, A. Asif. Continuous and Discrete Time Signals and Systems. Cambridge, Cambridge University Press, 2007.

[3] D. Manolakis, V. Ingle. Applied Digital Signal Processing. Cambridge, Cambridge University Press, 2011.

[4] Signal Processing Toolbox User’s Guide.pdf. The MathWorks Inc, 2005.

Cite As

Hristo Zhivomirov (2022). Test Signals Generation with Matlab Implementation (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!