%% fillstairs
% - Method which draws two stair-functions and fills the area between them
% - Created by Florian Krause on 2016-01-25 (V1.0)
% - Use it as you like.
% Fillstairs-Example
clear all
close all
clc
% X-Data
X = 0:23;
% Y-Data
Y1 = sin(X .* (2*pi/max(X)) ); % Func 1
Y2 = Y1 + 0.1*sin(X .* (2*pi/max(X)) ); % Func 2
% Draw
h = figure(1);
fillstairs(X,Y1,Y2,h);
title('Fillstairs Example');
Cite As
Florian (2024). fillstairs(X, Y1, Y2, h) (https://www.mathworks.com/matlabcentral/fileexchange/55080-fillstairs-x-y1-y2-h), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |