removing zeros
Mostra commenti meno recenti
[ 0]
[ 0]
[ 0]
[-673.12]
[ 0]
[ 0]
[ 0]
[ 0]
[ 0]
how do you clear zeros out of a cell array? when I try short(short == 0) = []; I get this error:
Undefined function 'eq' for input arguments of type 'cell'.
Risposte (1)
Jan
il 6 Apr 2012
C = {0, -673.12, 0};
C = C(cellfun(@any, C));
Categorie
Scopri di più su Data Types in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!