make rectangular with vectors
古いコメントを表示
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])
採用された回答
その他の回答 (1 件)
madhan ravi
2020 年 3 月 20 日
plot(a,b,'-ok') % look here
plot(b,c,'-ok')
plot(c,d,'-ok')
plot(d,a,'-ok')
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
