How to find the center point in this plot?
Afficher commentaires plus anciens
This is my plot. How to find the center point available in this plot?

4 commentaires
Walter Roberson
le 12 Fév 2013
Do you want the center of mass, or do you want the mid-point of the x and y values ?
the cyclist
le 12 Fév 2013
Do you have
- Only the image?
- The figure window actively open in MATLAB?
- The data in the workspace from which the figure was created?
Sabarinathan Vadivelu
le 13 Fév 2013
Modifié(e) : Sabarinathan Vadivelu
le 13 Fév 2013
Sabarinathan Vadivelu
le 13 Fév 2013
Réponse acceptée
Plus de réponses (1)
Thorsten
le 12 Fév 2013
x = rand(1,100);
y = rand(1,100);
plot(x, y, 'r*')
hold on
plot(mean(x), mean(y), 'k*', 'MarkerSize', 20)
2 commentaires
Sabarinathan Vadivelu
le 13 Fév 2013
Cameron Burgoni
le 9 Avr 2018
Did you ever figure this out?
Catégories
En savoir plus sur Line Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!