MATLAB: Draw a Cuboid with colorcode

cuboid

I have coordinates of 10 points. In each point, a vertical well has been drilled. The main variable is pressure along all wells (pressure versus depth). I need to draw a cube which includes the area of all wells and show the pressure. Something like this pictures:
"
Any help, tips or codes to approach this goal would be most appreciated.

Best Answer

1) First you need to interpolate your well data into a regularly spaced grids.
2) then use the slice command to generate those figures.
Movafagh bashi