Find zero crossings in multidimensional matrix

2 次查看(过去 30 天)
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

回答(1 个)

Bish Erbas
Bish Erbas 2018-9-26
Code below finds all zero elements of the example 2x2x5 matrix.
B = repmat([0 1],[2 2 5]);
B(B==0)
  4 个评论
Nate
Nate 2018-9-26
Guillaume is correct. However, my matrix isn't sparse though (bad choice of words on my part).

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Sparse Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by