photo

Sydney


Active since 2016

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


Given a matrix A = [2 5 7; 4 1 8], write a for loop that will replace all the even numbers with 0.
I'm looking for something using a for loop (probably nested) and possibly mod(A,2) to determine the even numbers What I tried...

8 years ago | 2 answers | 0

2

answers