fillstairs(X, Y1, Y2, h)
%% 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');
Zitieren als
Florian (2024). fillstairs(X, Y1, Y2, h) (https://www.mathworks.com/matlabcentral/fileexchange/55080-fillstairs-x-y1-y2-h), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |