Waveform generator using harmonics

These m files demonstrate, that square wave and triangular wave consists of sine components.

You are now following this Submission

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://in.mathworks.com/matlabcentral/fileexchange/55294-waveform-generator-using-harmonics), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0

1.0