Borrar filtros
Borrar filtros

how to compare the values of two matrix??

1 visualización (últimos 30 días)
Sahar abdalah
Sahar abdalah el 31 de Jul. de 2015
Comentada: Sahar abdalah el 31 de Jul. de 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.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 31 de Jul. de 2015
Editada: Azzi Abdelmalek el 31 de Jul. de 2015
id=isequal(A,B)+1
str={'different matrices','equal matrices'};
str{id}

Más respuestas (0)

Categorías

Más información sobre Multidimensional 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!

Translated by