In this block generation of Sawtooth,Square wave,Triangular wave,Flipped sawtooth wave,and Sine PWM is done using embedded block(user defined) and without using any blocks from Simulink Library.For better understanding of the code,read the comments in the embedded block.Anyone can make use of this as a library file and can use it for various simulation. Varying the amplitude and frequency of the all waveforms becomes simpler.They can also be varied for a specific waveform.
Vijayenthiran Subramaniam (2021). Wavefrom Generator (https://www.mathworks.com/matlabcentral/fileexchange/33911-wavefrom-generator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- Simulink > Modeling >
- Test & Measurement > Data Acquisition Toolbox > Periodic Waveform Generation >
- Signal Processing > Signal Processing Toolbox > Signal Generation and Preprocessing > Waveform Generation >
- Physical Modeling > Simscape > Customization > Creating Custom Components and Libraries > Pulse width modulation (PWM) >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!