I have two arrays. A is 46x46; B is 45x45.
I want to check if the first 45 rows and 45 columns in A are equal to the 45x45 B array.
I know to use
tf = is equal(A,B)
but don't know how to incorporate the above parameters into the isequal command.

 採用された回答

Honglei Chen
Honglei Chen 2014 年 9 月 4 日

0 投票

Did you try
isequal(A(1:45,1:45),B)

1 件のコメント

Joseph Cheng
Joseph Cheng 2014 年 9 月 4 日
編集済み: Joseph Cheng 2014 年 9 月 4 日
just to expand on this a bit the A(1:45,1:45) is the A(specified row to another specified row,specified to another specified col)

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

その他の回答 (0 件)

カテゴリ

質問済み:

2014 年 9 月 4 日

編集済み:

2014 年 9 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by