필터 지우기
필터 지우기

equality of an array

조회 수: 1 (최근 30일)
richard
richard 2014년 9월 4일
편집: Joseph Cheng 2014년 9월 4일
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일
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개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by