Creating Well log profiles in matrix

Bear with me please; I'm new here. In oil & gas exploration, we take vertical profiles of the subsurface, taking various measurements of rock properties continuously with depth. I think that in Matlab this would be represented by a matrix whose first column is depth, and the other columns are various other measurements(density, shear velocity, compressional velocity, gamma ray, etc.). I can build this matrix, but I cannot find a way to name the columns so as to identify which measurement is associated with which column. This is needed to cross-plot various properties vs. depth, and know what you are cross-plotting. Perhaps I am thinking of this wrongly vis-a-vis Matlab and there is a better way?
Regards, Mark Mathis

Answers (1)

Don Adams
Don Adams on 19 May 2021
Hello Mark,
The best way to associate a label with a vector of numbers is with a 2 x n cell array. The first row of cell could be data labels as strings and the second row could be the vectors of data. When yo make a crossplot you can access the data from the second row to make the plot and apply xlabel and ylabel using the strings in the frist row. It would beeasy to add a third row to track units and use them as part of the axis labels.
Don

Categories

Asked:

on 1 Apr 2013

Answered:

on 19 May 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!