creating a rectangle plot
이전 댓글 표시
답변 (3개)
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
2022년 7월 25일
Chunru
2022년 7월 25일
You can use polygon but not rectangle since it is NOT a rectangle.
PA
2022년 7월 25일
Walter Roberson
2022년 7월 25일
top row of p is x coordinates. Bottom row is y coordinates.
PA
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
댓글 수: 4
Walter Roberson
2022년 7월 29일
it is not clear what information is given? or is it an image that is given?
PA
2022년 7월 29일
PA
2022년 7월 29일
Walter Roberson
2022년 7월 29일
please post a sample image that does not have the annotations
PA
2022년 7월 29일
0 개 추천
댓글 수: 1
Walter Roberson
2022년 7월 29일
Please post an actual image, not a diagram
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

