How to draw a volxe size?

7 visualizaciones (últimos 30 días)
stefano chiappini
stefano chiappini el 6 de Sept. de 2021
Comentada: stefano chiappini el 10 de Sept. de 2021
Hi, i am looking for script to calculate the crown volume of tree point cloud by the voxel size. The file input is .txt type.
I thank you in advance.

Respuesta aceptada

Walter Roberson
Walter Roberson el 6 de Sept. de 2021
T = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/730384/test%20chioma.txt');
scatter3(T(:,1), T(:,2), T(:,3));
[~, crown_volume] = boundary(T)
crown_volume = 42.2327
  1 comentario
stefano chiappini
stefano chiappini el 8 de Sept. de 2021
Thank you for your reply, but this does not help me.

Iniciar sesión para comentar.

Más respuestas (2)

stefano chiappini
stefano chiappini el 6 de Sept. de 2021
Hi, thank you for your answer.
I want draw a plot like in the following figure allowed in this answer. I will set up size voxel about 0.3 meter.
I hope that you will could help me.
Thank you so much.
  20 comentarios
Walter Roberson
Walter Roberson el 10 de Sept. de 2021
I have had a lot of practice answering questions ;-)
stefano chiappini
stefano chiappini el 10 de Sept. de 2021
I believe you. I will start with the documentation place on the Matlab website.
Thank you so much!!!!!!! ;- )

Iniciar sesión para comentar.


stefano chiappini
stefano chiappini el 9 de Sept. de 2021
Editada: Walter Roberson el 9 de Sept. de 2021
Have you idea how to plot this figure in 3D enviroment, plesae? Thank you so much
  3 comentarios
stefano chiappini
stefano chiappini el 9 de Sept. de 2021
Editada: stefano chiappini el 9 de Sept. de 2021
i work with abosolute units.
Infact i heave set early my script in the following way
data=fopen('test chioma.txt');
x = data(:, 1);
y = data(:, 2);
z = data(:, 3);
% Subtract means
x = x - mean(x);
y = y - mean(y);
z = z - mean(z);
%--------------------------------------------------------------------------------------------------------
% Display the data.
subplot(1, 2, 1);
plot3(x, y, z, '.', 'MarkerSize', 3);
grid on;
xlabel('Column 1');
ylabel('Column 2');
zlabel('Column 3');
title('Original data not classified yet.');
hFig = gcf;
hFig.WindowState = 'maximized'; % May not work in earlier versions of MATLAB.
drawnow;
Walter Roberson
Walter Roberson el 9 de Sept. de 2021
The result of fopen() is a file identifier, which is a scalar integer. You then try to take the first three columns of that scalar integer.

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by