How to solve this simple index problem

 Réponse acceptée

Walter Roberson
Walter Roberson le 30 Août 2015
idx = isnan(b);
c = a(idx);
D = [a(~idx), b(~idx)];

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by