Effacer les filtres
Effacer les filtres

Isolate data elements out of a column on NaNs

1 vue (au cours des 30 derniers jours)
Chelsey
Chelsey le 6 Oct 2011
I have a large column of mostly "NaN" but it does periodically include actual data. Is there a way I can extract those data to form another vector?

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 6 Oct 2011
a=[0 nan 1 nan];
b=a(~isnan(a))

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by