How to plot points without line

435 Ansichten (letzte 30 Tage)
Omar Abdullateef
Omar Abdullateef am 23 Mär. 2019
Kommentiert: Moose am 25 Apr. 2023
I'm trying to plot the following command
as points rather than a linear line how do i do that?

Akzeptierte Antwort

madhan ravi
madhan ravi am 23 Mär. 2019
plot(x,y,'or')

Weitere Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by