how to compare the values of two matrix??
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sahar abdalah
le 31 Juil 2015
Commenté : Sahar abdalah
le 31 Juil 2015
hello, I have two matrix A and B. the size of the two matrix is 1000*1000. my goal is to compare the values of the two matrices. Please, help me to make a small program that compares the two matrix. if A and B have the same values, the program returns 'equal matrix' otherwise returned ' different matrix'.thanks in advance.
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 31 Juil 2015
Modifié(e) : Azzi Abdelmalek
le 31 Juil 2015
id=isequal(A,B)+1
str={'different matrices','equal matrices'};
str{id}
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!