stepfunc
Version 1.2.0.0 (1.58 KB) by
Marco Borges
Generates step-function signal and time vector where x is equal to 0 for n < 0 and 1 for x > 0.
The stepfunc generates step-function signal and time vector where x is equal to 0 for n < 0 and 1 for x > 0. Unlike heaviside, x is equal to 0 instead of 0.5 for n = 0.
Mathematical formula: x(n) = u(n-n0); n1 <= n,n0 <= n2
Cite As
Marco Borges (2024). stepfunc (https://www.mathworks.com/matlabcentral/fileexchange/42826-stepfunc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Measurements and Feature Extraction > Descriptive Statistics >
Find more on Descriptive Statistics in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.