X(X==0) = -1 ;
Help!!!!!!!! How to replace all the zeros in an array with -1?
160 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
sabahat sherien
il 16 Apr 2018
Commentato: sabahat sherien
il 16 Apr 2018
X = [1 0 0 0 1 0 0 1 1 0 1 0 1 1 1] i want to replace all zeros with -1 in array. anybody can help ?
0 Commenti
Risposta accettata
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Test and Measurement in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!