필터 지우기
필터 지우기

Finding elements in an array that differ by a certain tolerance from elements in another array of different size

조회 수: 1 (최근 30일)
What is the best way to do the following:
count=0
for i=1:size(array_1,1)
for j=1:size(array_2,1)
if abs(array_1(i)-array_2(j))<1
count=count+1;
array_3(count)=array_2(j);
end
end
end
The arrays are of different size

채택된 답변

KSSV
KSSV 2018년 2월 20일
Read about ismembertol

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by