Extract x,y data from plot
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mick777
am 17 Jul. 2014
Beantwortet: Joseph Cheng
am 17 Jul. 2014
Hello everyone,
I have a plane passing through a cylinder, is it possible to obtain the x and y data of the cylinder on the plane or obtain the slice or cross-section (with the use of slice or contourslice)? can the x,y data be extracted by using axes handles(children)?
Any pointers/suggestions will be really helpful. Thank you

0 Kommentare
Akzeptierte Antwort
Joseph Cheng
am 17 Jul. 2014
How many points define the cylinder? do you actually have points in the plane or is it just filled in visually by matlab? Is the cylinder defined by the rectangles corners?
http://www.mathworks.com/matlabcentral/answers/100687-how-do-i-extract-data-from-matlab-figures using the steps from here you can extract the XYZ data from the figure you can figure out where the plane intersects the cylinder and determine the points on the plane. here the points would be the same XY of the top and bottom of the cylinder with the Z coordinate at what looks to be 0.6.
0 Kommentare
Weitere Antworten (1)
Azzi Abdelmalek
am 17 Jul. 2014
Select the cylinder then write
x=get(gco,'Xdata')
y=get(gco,'Ydata')
z=get(gco,'Zdata')
0 Kommentare
Siehe auch
Kategorien
Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!