Question

scatterInterpolant doesn't work

I have a tetrahedral mesh. I want to plot a contour of its surface. I first test it on a mesh. But the scatterInterpolant return...

1 year ago | 0 answers | 0

Question

Get the indices of surface triangle from a tetrahedral mesh.

I used the function generateMesh() to generate a 3D tetrahedral mesh (quadratic model). I want to create a matrix TRI. Each row ...

1 year ago | 1 answer | 0

Question

Make a contour plot of a 3D Solid Object

Hi, I want to make a contour plot of my 3D Mesh. The 3D mesh is not a surface. But a solid object. I have already extract the fa...

1 year ago | 1 answer | 0

Question

Find the intersection of two surfaces.

Now I have two surfaces. Both of them are extracted from 2 solid 3D objects which are generated by trangular mesh. (Note it's a ...

1 year ago | 1 answer | 0

Question

Mesh doesn't work for cone shape?

I have a perfect cone shape, which is stored in a the tip_6.stl. I try to use the function generateMesh(). I found that no matte...

1 year ago | 1 answer | 0

Question

Use the index of an element of a subset to find its index in the large set?

function d_z = distance(tip, samp, search_dis) %tip is a n by 3 matrix, where each row is just the coordinate a point in 3-d sp...

1 year ago | 1 answer | 0

Question

Find the shortest distance between two object?

My question: (a) I have two object A and B. (They have some general curvy shape. They are objects in three dimension. They are...

1 year ago | 0 answers | 0

Question

How to preallocate memory if I don't know the size of the variable in every iteration?

I have a large set of data, say A. I have a for loop. In every iteration, I'm going to only work with the subset of data of A, s...

1 year ago | 0 answers | 0

Question

Solving systems of non-linear equations

I need to solve a system of non-linear equations. For example, I need to solve 10,000 equations, where each individual equation ...

1 year ago | 1 answer | 0

Question

Why the script of function is always stored in two files ".m" and ".m~"?

I stored my function in my directory as "test_probe.m". However, there's another file also created. It's name is "test_probe.m~"...

1 year ago | 1 answer | 0