How to plot points without line

435 visualizzazioni (ultimi 30 giorni)
Omar Abdullateef
Omar Abdullateef il 23 Mar 2019
Commentato: Moose il 25 Apr 2023
I'm trying to plot the following command
as points rather than a linear line how do i do that?

Risposta accettata

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

Più risposte (1)

Reza Mohammadkhani
Reza Mohammadkhani il 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 Commenti
KaoYuKaoYu
KaoYuKaoYu il 20 Feb 2023
But the matlab tell me "Unrecognized attribute none for class Line."
Moose
Moose il 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!!

Accedi per commentare.

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by