You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
A function to generate triangle waves over an array of time samples, used for example in sinusoidal PWM.
Fulfills some additional desireable traits over the original inspiration: mathworks.com/matlabcentral/fileexchange/46987-generation-of-triangle-wave
This allows you to change the amplitude, wavelength and phase shift.
Cite As
Pontus Fyhr (2026). triangleWave( time, amplitude, waveL, phaseShift) (https://www.mathworks.com/matlabcentral/fileexchange/65559-trianglewave-time-amplitude-wavel-phaseshift), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Generation of triangle wave
General Information
- Version 1.0.0.0 (290 Bytes)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Communities
More Files in the Power Electronics Control Community
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Spelling and link
|
