saving or not matrices
Show older comments
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 Comment
manoj saini
on 21 Jun 2011
if a(:)~=0
%save matrix
end
Accepted Answer
More Answers (1)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!