Effacer les filtres
Effacer les filtres

Find zero crossings in multidimensional matrix

1 vue (au cours des 30 derniers jours)
Nate
Nate le 26 Sep 2018
Commenté : Bish Erbas le 26 Sep 2018
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

Réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Sparse Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by