Find nonzero elements in 5x5 matrix (diagonal, vertical, horizontal line)
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Benjamin Nienhouse
il 23 Ott 2020
Commentato: Benjamin Nienhouse
il 23 Ott 2020
Hey,
So I'm wondering how to find a string 5 numbers long in a 5x5 matrix.
I'm trying to code a bingo game and my idea is whenever a number [1-100] is called that is also in my "bingo card" (5x5 matix A) to move that value and corrisponding position into another 5x5 matrix (B) of zeros. How can I find when there is a sting 5 numbers (nonzeros, from A) in a diagonal, vertical, or horizontal line.
Any help or advice is much appreaciated.
Thanks,
Ben.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Conway's Game of Life in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!