Plot a rectangle inside of a rectangle.
1 回表示 (過去 30 日間)
古いコメントを表示
ANANTA BIJOY BHADRA
2022 年 2 月 1 日
コメント済み: ANANTA BIJOY BHADRA
2022 年 2 月 2 日
How can I plot a rectangle inside of a rectangle. I have a rectangle of 50 width and 20 length. I need a rectangle inside with 15 width and 10 length. How to code it? I need matlab code or suggations for this.
0 件のコメント
採用された回答
Image Analyst
2022 年 2 月 2 日
Have you tried the rectangle function?
rectangle('Position', [5,2,50,20], 'EdgeColor', 'r', 'LineWidth', 2);
hold on;
rectangle('Position', [15,5,15,10], 'EdgeColor', 'b', 'LineWidth', 2);
grid on;
axis equal
Adjust numbers to get the placement you want.