Be the first to rate this file! 16 Downloads (last 30 days) File Size: 8.76 KB File ID: #31711
image thumbnail

Zero Order Hold with variable time step

by

 

Level-2 M-file S-function that acts as a ZOH sampler with sample times specified as a block input.

| Watch this File

File Information
Description

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.

Acknowledgements

Pulse With Jitter inspired this file.

Required Products Simulink
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us