# Estrarre l'intervallo di dati impostando il valore sulla matrice

1 view (last 30 days)
Hi, i have a question: i would like to extract data range from matrix composed by 3 column (one of them is the Z axis) , the data beloging to a thickness range of 20 cm, along the path.
Thank you so much
darova on 2 Aug 2021
Please provide more details. Show the data

darova on 3 Aug 2021
##### 2 CommentsShowHide 1 older comment
darova on 3 Aug 2021
Sorry, misunderstood you a bit. Use contour
xx = linspace(min(x),max(x),20);
yy = linspace(min(y),max(y),20);
zz = linspace(min(z),max(z),20);
[x1,y1] = meshgrid(xx,yy); % create a mesh
z1 = griddata(x,y,z,x1,y1); % interpolate the data
contour(x1,y1,z1,zz)
I don' an opportunity to look in your data. Can you make a printscreen or something?

stefano chiappini on 2 Aug 2021
Hi, i have attached the .txt data. It shows a olive tree point cloud. I want slice one from bottom to the top setting a value ( such as 0,10 m ) along Z column. and export each singular slice with a growing name ( Slice1, Slice 2. Slice3 and go on).
How can i solve this question?
Thank you.
##### 2 CommentsShowHide 1 older comment
stefano chiappini on 5 Aug 2021
Thank you for your tips. I solved my question.