saving or not matrices
Afficher commentaires plus anciens
Hi,
I'm looking for a way of saving matrices depending on their content.
My loop is generating matrices that I want to save, however sometimes there is no proper values in it (only zeros that i replace by NaN).
I'd like to save only the matrices that have at least one proper value (> 0), but not the ones that have only zeros or NaN.
cheers
1 commentaire
manoj saini
le 21 Juin 2011
if a(:)~=0
%save matrix
end
Réponse acceptée
Plus de réponses (1)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!