# How Can I Plot Multiple Points Without Mathlab Joining Them?

5 vues (au cours des 30 derniers jours)
LORENZO PRATS CAPARROS le 21 Oct 2022
Hi!
I have a series of points on the X and Y axis and I want to represent them in such a way that a discrete signal remains, but with plot(x,y) matlab joins the points. Can somebody help me?
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (4)

Mathieu NOE le 21 Oct 2022
Déplacé(e) : Image Analyst le 21 Oct 2022
hello
as usual , first thing to do is to read the doc
you can get a dotted plot by using the right marker , like :
plot(x,y,'.')
plot(x,y,'*')
plot(x,y,'d')
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

Déplacé(e) : Image Analyst le 21 Oct 2022
Ithink you needo look scatter (https://es.mathworks.com/help/matlab/ref/scatter.html)
##### 1 commentaireAfficher -1 commentaires plus anciensMasquer -1 commentaires plus anciens
LORENZO PRATS CAPARROS le 21 Oct 2022
Déplacé(e) : Image Analyst le 21 Oct 2022
Perfect! Thank you!

Connectez-vous pour commenter.

Hiro Yoshino le 21 Oct 2022
I would suggest that you should use Interactive Live Task for Plot.
Even if you are not familiar with the syntaxes, you can easily find the way out.
The Live Tasks can be converted into MATLAB script in a blink of an eye so that you can leran how to make it in a code manner.
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

John D'Errico le 21 Oct 2022
Plot is a simple tool. If you give it no direction at all about the line or markers, then it connects the points with a line, and no marker.
plot(1:5,[2 3 5 7 11])
If you specify a line style, here, dashed, it uses that line style, but still no markers.
plot(1:5,[2 3 5 7 11],'--')
If you instead specify the maker only, then it uses a marker at the points.
plot(1:5,[2 3 5 7 11],'o')
And finally, if you specify both a marker and a line style, you see both.
plot(1:5,[2 3 5 7 11],'s:')
Of course, all of this can be found by reading the docs for plot
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Annotations dans Help Center et File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by