Scatter Plotting multiple graphs(x, y) on a single graph

40 vues (au cours des 30 derniers jours)
olu Bamiduro
olu Bamiduro le 12 Août 2014
Commenté : Aieman Haziq le 12 Jan 2022
I would like to scatter plot five pieces of data (eg. X1, Y1, X2, Y2, X3, Y3......X5, Y5) all on one graph?

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 12 Août 2014
Modifié(e) : Azzi Abdelmalek le 12 Août 2014
scatter([X1,X2,X3,X4,X5],[Y1,Y2,Y3,Y4,Y5])
%or
scatter(X1,Y1)
hold on
scatter(X2,Y2)
scatter(X3,Y3)
scatter(X4,Y4)
scatter(X5,Y5)
  2 commentaires
pranjali vatsalaya
pranjali vatsalaya le 25 Fév 2021
thank you
could you pls also help me in labeling these separetly.
using the first them plots them together as the same data and i cant label them separately.
thanks in advance
Aieman Haziq
Aieman Haziq le 12 Jan 2022
welcome'

Connectez-vous pour commenter.

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!

Translated by