MATLAB: How to create a volume using x,y,z co-ordinates for use in isosurface & isocaps function

image processinginterpolationisocapsisosurface

Hi I have x,y,z co-ordinates – which you can visualise with " figure, stem3(xI, yI, zI, 'MarkerFaceColor', 'g'); " , if you open my attached .mat file
I want to create a volume from this, compatible with the the matlab functions isosurface and isocaps
the eventual aim is to build a wavefront object (using this function https://uk.mathworks.com/matlabcentral/fileexchange/27982-wavefront-obj-toolbox
How would I go about making (interpolating?) this volume matrix, assuming that the volume starts from z=0 to z=n ?

Best Answer

Already you have a surface there......
surf(xI, yI, zI)
shading interp
colorbar
Related Question