You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
- Version 1.0 (585 Bytes)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0 | 1.0 |
|
