View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 3.96 KB File ID: #27965 Version: 1.2
image thumbnail




20 Jun 2010 (Updated )

Plots upper and lower surfaces of a layer, calculates and plots the boundary faces

| Watch this File

File Information

Intended for 3D geological/geophysical visualisation of layered data and will eventually form part of a geophysical visualisation package.
Run ThreedDemo to get an idea of how to use.

 INPUTS: LayerN: The number of the layer to be plotted
         R: a m*n*k matrix of colour/resistivity data for each layer where
            m*n is the size
            of the grid and k is the layer number
         Z: a m*n*k+1 matrix of elevation data for each layer. Therefore
            Z(:,:,1) gives the topography of the land, Z(:,:,2) would be the
            topography of the interface between layer 1 and layer 2.
            Z(:,:,k+1) gives the topography of the base of the last layer.
         Xn, Yn: m*n matrices of the base grid containing the XY co-ords
         for each point.
                NOTE: Each matrix must be surrounded by NaNs. This could be
                achieved in two ways: 1. Use the NaNMat function
                    2. Plot a pcolor image of the surface
                    and use ginput to draw a polygon of
                    the desired surface. Then use
                    'inpolygon' to replace all those
                    values lying outside with NaN. See
                    the file ThreedDemo for help.
 OUTPUTS: hLight: handle of the light object for manipulating lighting.

Has been tested on large data sets (10000 points). Uses opengl for rendering, but this can easily be changed.

MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
13 Aug 2015 cheng joylin  
21 Jun 2010 1.2

 21/06/10 Fixed bug in NanMat.m

Contact us