2つの線分で囲まれた領域を塗りつぶすことはできますか?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
2つの線分で囲まれた領域を塗りつぶす方法を教えてください。
Akzeptierte Antwort
MathWorks Support Team
am 2 Jan. 2018
線分に囲まれた領域を多角形とみなすことで色を塗ることが可能です。
下記例では、多角形とみなした領域を FILL 関数で塗りつぶしています。
x = 1:10;
y = rand(1,10);
y2 = rand(1,10);
X = [x,fliplr(x)];
Y = [y,fliplr(y2)];
fill(X,Y,'r')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu ROI ベース処理 finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!