Conditional statement with vectors

5 ビュー (過去 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 Center および File ExchangeAssembly についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by