Waveform generator using harmonics
Version 1.0 (585 Bytes) by
Rajan Chalotra
These m files demonstrate, that square wave and triangular wave consists of sine components.
These m files demonstrate, that square wave and triangular wave consists of sine components.
The more components ( harmonics) you add, more perfect wave you will get.
Similarly you can create sawtooth wave, half cycle sine wave or any periodic waveform, by adding/deleting sine cosine harmonics.
Cite As
Rajan Chalotra (2026). Waveform generator using harmonics (https://www.mathworks.com/matlabcentral/fileexchange/55294-waveform-generator-using-harmonics), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Test and Measurement > Data Acquisition Toolbox > Periodic Waveform Generation >
- Signal Processing > Signal Processing Toolbox > Signal Generation, Analysis, and Preprocessing > Waveform Generation >
Find more on Periodic Waveform Generation in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0 | 1.0 |
|
