How to add values at blue dots in graphs?

3 views (last 30 days)
Laur Haxhiu
Laur Haxhiu on 27 Nov 2020
Commented: Laur Haxhiu on 27 Nov 2020

Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 27 Nov 2020
You mean sum up the plotted blue 'square' marker data points?
If so and you have only this plot as a data source, then you can use:
[x, y] = ginput(9); % hover your cursor carefully over the data points and click one after another for 9 times.
Sum_y = sum(y); % sum of y data points
Sum_x = sum(x); % sum of x data points

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!