AREASHADE

バージョン 1.0.0.0 (1.85 KB) 作成者: Andreas
Shades areas between a curve and a fixed threshold.
ダウンロード: 2.9K
更新 2005/3/25

ライセンスの表示

編集メモ: This file was a File Exchange Pick of the Week

AREASHADE(X,Y,F) shades the area where Y is larger than some fixed value F using the color yellow.

AREASHADE(X,Y,F,C) uses color C instead of yellow.

AREASHADE(X,Y,F,C,TH) where TH = 'h' uses F as a high threshold and shades the are where Y<F. Default for TH is 'l', painting Y>F.

H = AREASHADE(X,Y,F) returns a handle to the created patch.

Example:
x = [0:.5:20]; y = sin(x);
figure, plot(x,y,'o-'), hold on
areashade(x,y,1/sqrt(2),'r')
areashade(x,y,-1/sqrt(2),'b','h');
plot(xlim,1/sqrt(2)*[1 1],'k')
plot(xlim,-1/sqrt(2)*[1 1],'k')

引用

Andreas (2024). AREASHADE (https://www.mathworks.com/matlabcentral/fileexchange/7255-areashade), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14SP1
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersPolygons についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0