Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
How can a plot similar to this one can be done? with squares and dotted lines on each horizontal and vertical direction?

Akzeptierte Antwort

DGM
DGM am 6 Okt. 2021
Bearbeitet: DGM am 6 Okt. 2021
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 Kommentare
Image Analyst
Image Analyst am 7 Okt. 2021
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. 🙂

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Particle & Nuclear Physics finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by