adding a shrinkage/ growth

16 ビュー (過去 30 日間)
Matthew Lyon
Matthew Lyon 2021 年 3 月 10 日
コメント済み: Matthew Lyon 2021 年 3 月 10 日
plot_polygon = @(x,y) plot(polyshape(x,y));
x0 = -10;
y0 = -4;
x_plane = [0,1,1.5,2,2.5,2.5,1.5,3,4,4,0]+x0;
y_plane = [0,1,1,-1,-1,1,1,1,2,0,0]+y0;
plane = polyshape(x_plane,y_plane);
t1 = translate(plane,[20,0]);
t2 = translate(plane,[0,8]);\
plot_polygon(x_plane,y_plane)
hold on
plot(t1)
plot(t2)
holf off
That is all my code. if you run it you get a shape the that shape is translated 2 times. im trying to make it so it grows horizontally by 2.4% when moving in the x direction
  2 件のコメント
Star Strider
Star Strider 2021 年 3 月 10 日
See also: cant seem to get this to translate and translating this polygon to a new position neither of which was either followed up or Accepted.
Matthew Lyon
Matthew Lyon 2021 年 3 月 10 日
this relates to the growth of the problem

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeElementary Polygons についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by