フィルターのクリア

how to compare the values of two matrix??

1 回表示 (過去 30 日間)
Sahar abdalah
Sahar abdalah 2015 年 7 月 31 日
コメント済み: Sahar abdalah 2015 年 7 月 31 日
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.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 7 月 31 日
編集済み: Azzi Abdelmalek 2015 年 7 月 31 日
id=isequal(A,B)+1
str={'different matrices','equal matrices'};
str{id}
  1 件のコメント
Sahar abdalah
Sahar abdalah 2015 年 7 月 31 日
thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by