How to plot points without line

480 ビュー (過去 30 日間)
Omar Abdullateef
Omar Abdullateef 2019 年 3 月 23 日
コメント済み: Moose 2023 年 4 月 25 日
I'm trying to plot the following command
as points rather than a linear line how do i do that?

採用された回答

madhan ravi
madhan ravi 2019 年 3 月 23 日
plot(x,y,'or')

その他の回答 (1 件)

Reza Mohammadkhani
Reza Mohammadkhani 2020 年 3 月 23 日
Sets the line style as none, and select a marker as you like. For example:
plot(x, y,'linestyle','none','marker','o')
  2 件のコメント
KaoYuKaoYu
KaoYuKaoYu 2023 年 2 月 20 日
But the matlab tell me "Unrecognized attribute none for class Line."
Moose
Moose 2023 年 4 月 25 日
Can't upvote this but your response just answered a question I've been puzzling over for entirely too long haha. thank you so much!!

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by