creating a rectangle plot

回答 (3 件)

Chunru
Chunru 2022 年 7 月 25 日

0 投票

p = [0 2 2 3 3 5 5 0 0;
0 0 1 1 0 0 4 4 0];
plot(p(1,:), p(2,:))

6 件のコメント

PA
PA 2022 年 7 月 25 日
Thanks Chunru, And can i use rectangle here
Chunru
Chunru 2022 年 7 月 25 日
You can use polygon but not rectangle since it is NOT a rectangle.
PA
PA 2022 年 7 月 25 日
Chunru can you describe about the coordinate
Walter Roberson
Walter Roberson 2022 年 7 月 25 日
top row of p is x coordinates. Bottom row is y coordinates.
PA
PA 2022 年 7 月 26 日
Thanks, And is there any other method for this to be plot
Chunru
Chunru 2022 年 7 月 26 日
You can work out the coordinates (use nan to break up the line).
p = [0 4 nan 6 7 7 0 0 nan 4 6 6 4 4;
0 0 nan 0 0 5 5 0 nan -1 -1 1 1 -1];
plot(p(1,:), p(2,:)); axis off

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

PA
PA 2022 年 7 月 29 日
編集済み: PA 2022 年 7 月 29 日

0 投票

I need to find the value of Xa,Ya, Xb ,Yband can anyone help me with the algorithm

4 件のコメント

Walter Roberson
Walter Roberson 2022 年 7 月 29 日
it is not clear what information is given? or is it an image that is given?
PA
PA 2022 年 7 月 29 日
an image is given from there i need to find the value of Xa
PA
PA 2022 年 7 月 29 日
Xa and Ya are the points of the line from the frontside and xb and Yb are he points of the line on the rear side. i need to derive the formula for Xa ,Ya, Xb, Yb
Walter Roberson
Walter Roberson 2022 年 7 月 29 日
please post a sample image that does not have the annotations

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

PA
PA 2022 年 7 月 29 日

0 投票

its a fin which have cordintate Xa,Ya and Xb,Yb
i have to find the formula for the Xa and Ya.
the fins with bold is displayed on the case and the dashed lines are the hidden fins inside the case

1 件のコメント

Walter Roberson
Walter Roberson 2022 年 7 月 29 日
Please post an actual image, not a diagram

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

タグ

質問済み:

PA
2022 年 7 月 25 日

コメント済み:

2022 年 7 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by