saving or not matrices
Ältere Kommentare anzeigen
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 Kommentar
manoj saini
am 21 Jun. 2011
if a(:)~=0
%save matrix
end
Akzeptierte Antwort
Weitere Antworten (1)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!