Zero Order Hold with variable time step
Version 1.0.0.0 (8,76 ko) par
Phil Goddard
Level-2 M-file S-function that acts as a ZOH sampler with sample times specified as a block input.
This submission demonstrates how to write a level-2 M-file S-function with a variable sample time.
The block samples and holds an input signal were the inter-sample period is specified by another input signal (and may vary from time period to time period).
Each step size must be positive or an error is thrown.
Citation pour cette source
Phil Goddard (2026). Zero Order Hold with variable time step (https://fr.mathworks.com/matlabcentral/fileexchange/31711-zero-order-hold-with-variable-time-step), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2010a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
- Simulink > Block and Blockset Authoring > Author Block Algorithms > Author Blocks Using MATLAB > Author Blocks Using MATLAB S-Functions > Create MATLAB S-Functions >
En savoir plus sur Create MATLAB S-Functions dans Help Center et MATLAB Answers
Tags
Remerciements
Inspiré par : Pulse with jitter
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
