You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Phil Goddard (2026). Zero Order Hold with variable time step (https://nl.mathworks.com/matlabcentral/fileexchange/31711-zero-order-hold-with-variable-time-step), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Pulse with jitter
General Information
- Version 1.0.0.0 (8.76 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
