generate uniformly distributed coordinates (Ax3 matrix) from known coordinates (Rx3 matrix)

1 view (last 30 days)
Hi. I am trying to generate uniformly distributed coordinates (Ax3 matrix) from the non-uniform coordinates of a 3D object (Rx3 matrix) that I know. That is, I should create these uniformly distributed coordinates taking into account the Rx3 coordinates and maintaining the geometry of the 3D object. Is there any function available that can serve my purpose?
I am currently starting like this:
object3D = importdata("example.txt"); % known

Answers (1)

KSSV
KSSV on 22 Dec 2022
  3 Comments
Alberto Acri
Alberto Acri on 23 Dec 2022
Edited: Torsten on 23 Dec 2022
I added the "v" function because "scatteredInterpolant" requests a v=F(x,y,z).
Attached you will find the .txt file.
M = importdata("example.txt");
plot3(M(:,1),M(:,2),M(:,3),'o')

Sign in to comment.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!