필터 지우기
필터 지우기

error using find: Matrix dimensions must agree

조회 수: 1 (최근 30일)
Jack Ie
Jack Ie 2016년 4월 22일
댓글: Walter Roberson 2017년 5월 22일
comms is a matrix and nb is a vector with different dimensions.
[nb_comms,~]=find(comms==nb);
error: Error using == Matrix dimensions must agree.

답변 (1개)

Star Strider
Star Strider 2016년 4월 22일
I am not certain what you are doing. See if the intersect or related functions do what you want.
Example:
comms = randi(99, 1, 50);
nb = randi(50, 1, 10);
[nb_comms, idx_comms, idx_nb] = intersect(comms,nb);
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 5월 22일
Siamak comments to Star Strider:
Thank you so much for your helpful answer

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Pulsed Waveforms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by