How do I fill the color in the block? This is the function I'm using.
1 回表示 (過去 30 日間)
古いコメントを表示
hold on
x = [4 5 5 4 4]
y = [13 13 12 12 13]
plot(x,y,'y')
axis equal
hold off
hold on
x = [4 4 5 5 4]
y = [12 11 11 12 12]
plot(x,y,'g')
axis equal
hold off
hold on
x = [4 4 5 5 4]
y = [11 10 10 11 11]
plot(x,y,'g')
axis equal
axis([0 9 0 13])
0 件のコメント
採用された回答
KSSV
2021 年 12 月 7 日
Read about patch.
hold on
x = [4 5 5 4 4]
y = [13 13 12 12 13]
patch(x,y,'y')
axis equal
hold off
hold on
x = [4 4 5 5 4]
y = [12 11 11 12 12]
patch(x,y,'g')
axis equal
hold off
hold on
x = [4 4 5 5 4]
y = [11 10 10 11 11]
patch(x,y,'g')
axis equal
axis([0 9 0 13])
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!