Find zero crossings in multidimensional matrix
Mostrar comentarios más antiguos
Hello,
I have a multidimensional (5-D) matrix that is a sparse sampling of a smooth function. I would like to interpolate to find the coordinates where the matrix is zero. Does anyone know a way to do this?
Thank you Nate
Respuestas (1)
Bish Erbas
el 26 de Sept. de 2018
Code below finds all zero elements of the example 2x2x5 matrix.
B = repmat([0 1],[2 2 5]);
B(B==0)
4 comentarios
Guillaume
el 26 de Sept. de 2018
My understanding of the question is that the matrix does not contain the zeros. The zeros would be found by finding adjacent points that have different sign and interpolating between them.
Also, the matrix is sparse.
Nate
el 26 de Sept. de 2018
Nate
el 26 de Sept. de 2018
Bish Erbas
el 26 de Sept. de 2018
Sorry for my misunderstanding.
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!