How do I check to see if the elements in a matrix are all equal?
53 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
katherine keogh
el 11 de Sept. de 2020
Comentada: madhan ravi
el 11 de Sept. de 2020
So if I have matrix A=[1 1 1 ; 1 1 1 ; 1 1 1] I would like to run a check so check if all the elements in the matrix are the same. Or say matrix B = [1, 0 1; 0 1 0; 1 1 0] I would liek to run a check to see if the elements are all the same ( in this case they aren't).
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Cell Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!