Even Numbers in a matrix a
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a matrix 1 through 20 and i need to make a new matrix b with even numbers 1 through 20
0 Commenti
Risposte (1)
madhan ravi
il 31 Ott 2018
Modificato: madhan ravi
il 31 Ott 2018
a=1:20
b=a(rem(a,2)==0)
5 Commenti
madhan ravi
il 31 Ott 2018
If you got the answer to your question make sure to accept the answer so people know question is solved else let know
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!