make rectangular with vectors
Show older comments
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])
Accepted Answer
More Answers (1)
madhan ravi
on 20 Mar 2020
plot(a,b,'-ok') % look here
plot(b,c,'-ok')
plot(c,d,'-ok')
plot(d,a,'-ok')
Categories
Find more on Polar Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!