How can I make a scatter plot with different markers ?
72 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
SEVAL DONERTAS
le 19 Mai 2020
Réponse apportée : Walter Roberson
le 19 Mai 2020
Hi;
I want to make a scatter plot with different markers for the attached .txt file?
I want to show the three values in one graphic with for example "circle", "rectangular" and "diamond" as a scatter plot.
Could you please help me about Matlab code for this graphic?
Thanks a lot..
0 commentaires
Réponse acceptée
Walter Roberson
le 19 Mai 2020
scatter() can only specify one marker shape for each scatter object, so you will need to make multiple calls.
0 commentaires
Plus de réponses (1)
Stijn Haenen
le 19 Mai 2020
Modifié(e) : Stijn Haenen
le 19 Mai 2020
maybe somthing like this:
symbol_list=['*';'+';'o';'<'];
for i=1:4
scatter(x(:,i),y(:,i),symbol_list(i))
hold on
end
0 commentaires
Voir également
Catégories
En savoir plus sur Scatter Plots 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!