make rectangular with vectors
Ältere Kommentare anzeigen
Hi
I write a code for making a rectangular but I have a problem to show one of the sides
I appreciate you for your help
thanks
a=[-1,-1];
b=[-1,1];
c=[1,1];
d=[1,-1];
plot(a,c,'-ok')
hold on
plot(b,c,'-ok')
plot(b,d,'-ok')
plot(c,d,'-ok')
plot(d,a,'-ok')
plot(b,a,'-ok')
plot(b,d,'-ok')
axis([-2,2,-2,2])
Akzeptierte Antwort
Weitere Antworten (1)
madhan ravi
am 20 Mär. 2020
plot(a,b,'-ok') % look here
plot(b,c,'-ok')
plot(c,d,'-ok')
plot(d,a,'-ok')
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
