필터 지우기
필터 지우기

How can a plot similar to this one can be done? with squares and dotted lines on each horizontal and vertical direction?

조회 수: 1 (최근 30일)
How can a plot similar to this one can be done? with squares and dotted lines on each horizontal and vertical direction?

채택된 답변

DGM
DGM 2021년 10월 6일
편집: DGM 2021년 10월 6일
If you know where the vertices are, it should be fairly simple. Consider the very simplified example.
x = [0 10 10 0 0];
y = [0 0 10 10 0];
plot(x,y,'k'); hold on;
x = [0 2 2 4 4];
y = [6 6 8 8 10];
plot(x,y,'k:')
axis equal
xlim([-5 15])
ylim([-5 15])
Whether you explicitly define your vertices as literal vectors or whether you derive them from some CAD file shouldn't make much difference.
  댓글 수: 3
Image Analyst
Image Analyst 2021년 10월 7일
Juan, if it solved your question, can you click the "Accept this answer" link to give @DGM the reputation points he deserves? Thanks in advance. 🙂

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by