How can I plot non connected dots in rectangle shape?

I need to plot dots that have specific coordinates and together they form a rectangular without bottom edge.
In added picture I've done this already in Wolfram Mathematica, so I can show you what I mean exactly. Thanks for time and help in advance.

回答 (1 件)

Jan
Jan 2018 年 3 月 25 日

0 投票

x = [-4, -4, -4, -4:4, 4, 4, 4];
y = [ 1, 2, 3, repmat(4, 1, 9), 3, 2, 1];
plot(x, y, 'o')

カテゴリ

ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索

製品

質問済み:

2018 年 3 月 24 日

回答済み:

Jan
2018 年 3 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by