Replace zeros with non-zero values from another array
Mostra commenti meno recenti
Output1:
71
0
74
75
85
0
88
Output 2:
39242
32
8385
0
17854
74
10499
I want to take the rows with zero in Output 1 and replace them with values in same rows of Output2.
Output3:
71
32 %This is from Output 2
74
75
85
74
88 %This is from Output 2
Any ideas?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Cell Arrays 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!