フィルターのクリア

How to inser 10x10 eqaully squares in the same picture

1 回表示 (過去 30 日間)
Mekala balaji
Mekala balaji 2019 年 5 月 4 日
コメント済み: Walter Roberson 2019 年 5 月 4 日
I have below code to draw cirle to draw a circle, and I want to draw 10x10 squares (of eqaul size) with sum of the sides will be eqaul to cirlce dia.
pos = [2 4 2 2];
rectangle('Position',pos,'Curvature',[1 1])
axis equal
hold on
rectangle('Position',pos,'EdgeColor','r')
  5 件のコメント
Mekala balaji
Mekala balaji 2019 年 5 月 4 日
In regular grid.
Walter Roberson
Walter Roberson 2019 年 5 月 4 日
The size of one square is min(diff(1:10)) which is 1. That is, to use a square that is D on a side, use D as the increment, like
x_coordinates = first_x + (0:10)*D;

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by