triangleWave( time, amplitude, waveL, phaseShift)
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 (2024). triangleWave( time, amplitude, waveL, phaseShift) (https://www.mathworks.com/matlabcentral/fileexchange/65559-trianglewave-time-amplitude-wavel-phaseshift), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Signal Generation and Preprocessing > Waveform Generation >
Tags
Acknowledgements
Inspired by: Generation of triangle wave
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Spelling and link
|