How do I obtain the area of each contour on a contour3 plot?
Show older comments
I have written a code that overlaps a 3D scan with some external data from the object being analysed, resulting in a plot similar to the one showed below

I am trying to obtain the area of each contour, but so far I have not had any luck.
To obtain the contourplots, I used the following:
clear all , close all, clc,
%processing code that selected a specific area of the 3D scan where the
%sample was located
[x1, y1, z_data] = process_3d_data(sample_file);
figure;
t = tiledlayout(1,1);
ax1 = axes(t);
contour3(ax1, x1, y1, z_data, linspace(0.05, 0.8, 15), 'ShowText', 'off');
The sample_file originally comes in an .asc format, but to be able to upload it I have changed it into a .mat format,
Accepted Answer
More Answers (0)
Categories
Find more on Numerical Integration and Differentiation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

