How to plot points without line

443 views (last 30 days)
Omar Abdullateef
Omar Abdullateef on 23 Mar 2019
Commented: Moose on 25 Apr 2023
I'm trying to plot the following command
as points rather than a linear line how do i do that?

Accepted Answer

madhan ravi
madhan ravi on 23 Mar 2019
plot(x,y,'or')

More Answers (1)

Reza Mohammadkhani
Reza Mohammadkhani on 23 Mar 2020
Sets the line style as none, and select a marker as you like. For example:
plot(x, y,'linestyle','none','marker','o')
  2 Comments
KaoYuKaoYu
KaoYuKaoYu on 20 Feb 2023
But the matlab tell me "Unrecognized attribute none for class Line."
Moose
Moose on 25 Apr 2023
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!!

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!