How to find the center point in this plot?
Show older comments
This is my plot. How to find the center point available in this plot?

4 Comments
Walter Roberson
on 12 Feb 2013
Do you want the center of mass, or do you want the mid-point of the x and y values ?
the cyclist
on 12 Feb 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
on 13 Feb 2013
Edited: Sabarinathan Vadivelu
on 13 Feb 2013
Sabarinathan Vadivelu
on 13 Feb 2013
Accepted Answer
More Answers (1)
Thorsten
on 12 Feb 2013
x = rand(1,100);
y = rand(1,100);
plot(x, y, 'r*')
hold on
plot(mean(x), mean(y), 'k*', 'MarkerSize', 20)
2 Comments
Sabarinathan Vadivelu
on 13 Feb 2013
Cameron Burgoni
on 9 Apr 2018
Did you ever figure this out?
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!