Triangle Pulse Generator

Trigger a triangle pulse at any point in your simulation (not clock dependent)
803 descargas
Actualizado 5 feb 2013

Ver licencia

I needed to trigger a triangle pulse using a signal within my Simulink model (in my case it was a position vector). All I could find within the Sim Library was pulses set to activate at a certain time (by using a delay or building a signal from scratch). So I baked one myself.

The biggest problem was the inability to "reset" the clock (I wanted to use it as a timer to set the width of my pulse). As a substitution for the clock timer, I use switch blocks to switch between zero and integration of a constant (calculated based on pulse duration and amplitude) in order to generate the triangle pulse.

Citar como

Jared Goodner (2024). Triangle Pulse Generator (https://www.mathworks.com/matlabcentral/fileexchange/40179-triangle-pulse-generator), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2010a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Switches and Breakers en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0