I am trying to plot this data on Maple as 3D scatter plot and surface plot:
Any help would be appreciated. Thanks.
Cut-and-paste format of the data:
Pressure(Bar) Temp (K) k (/Ms) 19.02 311.15 6.83E+08 18.64 307.05 5.94E+08 18.54 304.65 6.33E+08 20.5 301.15 5.56E+08 31.07 298.15 4.2588E+08 32.64 304.65 4.4338E+08 30.01 311.15 4.4338E+08 28.04 300.23 4.2588E+08 40.46 298.5 6.84E+07 40.34 304.65 1.1050E+08 39.36 308.6 8.2132E+07 39.18 310.81 8.8382E+07 50.17 300.75 1.3934E+08 51.03 302.63 5.7132E+07 51.39 304.55 9.2228E+07 52.65 311.2 1.4588E+08 51.14 308.45 9.7997E+07 60.66 311.75 1.4878E+08 59.11 308.15 1.3838E+08 59.94 304.65 1.6723E+08 58.1 302.95 1.1765E+08 58.27 301.85 1.3838E+08 57.84 300.75 1.4588E+08
You can look at the example worksheet on interpolation and smoothing ( http://www.maplesoft.com/support/help/Maple/view.aspx?path=examples%2fInterpolation_and_Smoothing )
At bottom, I've also included a simple method using inverse-distance and weighted averaging (which is fast, but which extrapolates poorly).
Sorry, for some reason I am unable to attach images of the plots right now.
I have used your third column as the dependent data, but it should be straightforward to change that. Just make sure that the dependent data is the 3rd column of the Matrix formed like, say,
<P|T|M>.First, one can construct the basic 3D point plot from the data. Some version of the point plot (with some shading scheme) may or may not be displayed alongside the various surfaces constructed below.
Next, a simple triangular mesh can be used to interpolate linearly between the points.
Another approach is to smooth the data. This may not produce great results for such a small amount of data. There are several adjustable options for the method. It is not fast.
Another possible approach is to to use weighted average (weighted by distance or some metric). Below, a black-box procedure
ffis created which takes any p-t point and returns the computed m-value. (A better scheme for this would be interpolation over Voronoi cells using so-called natural neighbors and radial basis functions, but I have only unfinished code for that at present.)We can query procedure
ffat any (p,t) point.which produces,
And
ffcan now be used directly in theplot3dcommand,