I have the scatter diagram and I want the coordinates of each point
Ältere Kommentare anzeigen
What I want is, if I have the scatter diagram, how can I take the coordinates of each and every point in a matrix or in a vector?

3 Kommentare
the cyclist
am 4 Jun. 2015
Can you be more specific when you say you "have the scatter diagram"? Do you only have an image (like a PNG file), or do you have a MATLAB-generated figure window open, etc.
Ang Vas
am 4 Jun. 2015
Bearbeitet: Image Analyst
am 4 Jun. 2015
luc
am 4 Jun. 2015
Could you add some sample A data? It seems to me the
scatter(c+offx,r+offy,'.', 'b')
line contains the X and Y data. So X_new and Y_new becomes:
New_X=c+offx;
New_Y=r+offy;
Antworten (1)
Image Analyst
am 4 Jun. 2015
0 Stimmen
How did you generate the picture? If it was via MATLAB, then why don't you know the coordinates already?
Maybe this will help: http://www.mathworks.com/matlabcentral/fileexchange/36904-matlab-script-for-digitizing-a-published-graph
Or else, call ginput() or impoints(). You will also have to click on the start and stop of the x and y axes so that you can locate the origin and a spatial calibration factor.
2 Kommentare
Image Analyst
am 4 Jun. 2015
Regarding your clarification above...
The "x" values are c+offx,
and the "y" values are r+offy.
Ang Vas
am 4 Jun. 2015
Kategorien
Mehr zu Scatter Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!