T O P I C R E V I E W |
deepakdinakaran |
Posted - 09/13/2016 : 07:18:47 AM Origin Ver. and Service Release (Select Help-->About Origin): Origin Pro 2016, SR 2 Operating System: Windows 7
Hello,
I have data stored in two matrix data sets. The data sets differ by Z value and from these data sets, i have a graph with intersecting surface plot.
Problem: I would like to extract information concerning the interactions of surface plots. For example, I need the data points (x, y, z) at which the two surface plots intersect. Is there a way to do this in current Version ?
Thank you. |
2 L A T E S T R E P L I E S (Newest First) |
deepakdinakaran |
Posted - 09/15/2016 : 03:15:05 AM Thank you and i was able to extract the intersecting information with this method. |
Hideo Fujii |
Posted - 09/13/2016 : 2:13:16 PM Hi deepakdinakaran,
Though there are currently no direct way, you can do the following procedure to "extract" the intersection data from two surface plots:
1) Make the two matrices (say, MBook1 and MBook2) have the same dimensions and same XY ranges, if they are different. To do so, choose "Analysis: Mathematics: 2D Interpolate/Extrapolate" menu.
See also Graph1.
2) In the Script window, make a new matrix (say, MBook3), and subtract one from the other of the input matrices, e.g., MBook3=MBook2-MBook1;
We want to obtain Z data on the surface at the intersection's (x,y). See Graph2.
3) From the result matrix of 2), create a B/W line contour plot.
4) Right-click on the z=0 contour line, and select "Extract Contour Lines" flyout. This creates an XY worksheet of the intersection (Book1). (You may need the level interval of contours from Plot Details dialog to have a line which is exactly z=0. See Graph3. Also, there might be more than one intersection segments. If so, you may aggregate them.)
5) Now we need to get the z values on the input surface at the xy positions in 4). To do so, first convert one of the input matrix (either one) to xyz worksheet by "Matrix: Convert Worksheet" menu, then select the option, Method=XYZ Columns. (Book2)
6) Using "Analysis: Mathematics: Interpolate Z from XY" menu using Book1 as the "XY Values to Interpolate", and Book2 as the Input data, and output Z values into the new column (col(C)) in Book1. (You should decide which interpolation method you use - in this sample TPS method.) This worksheet is the result. (Its plot is Graph4.)
I hope this method achieves what you wanted.
--Hideo Fujii OriginLab |
|
|