Conditional statement with vectors

조회 수: 1 (최근 30일)
Tchilabalo
Tchilabalo 2019년 5월 18일
댓글: Tchilabalo 2019년 5월 19일
I have two vectors A (100 numbers) and B (500 numbers). For each element of A, I want to find the index (j) of element B such that: Bj-1 Ai ˂ Bj
Thanks in advance.

답변 (1개)

John D'Errico
John D'Errico 2019년 5월 18일
help discretize
  댓글 수: 1
Tchilabalo
Tchilabalo 2019년 5월 19일
That works. Thanks very much.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by