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

Zero Order Hold with variable time step

by Phil Goddard

 

07 Jun 2011

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

The author wishes to acknowledge the following in the creation of this submission:
Pulse with jitter

Required Products Simulink
MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Phil Goddard 08 Jun 2011 12:12:45
sfunction Phil Goddard 08 Jun 2011 12:12:45
sfunction Daye Lin 21 Oct 2011 11:51:02
simulink Daye Lin 21 Oct 2011 11:51:04

Contact us at files@mathworks.com