mapping a value to a vector

8 ビュー (過去 30 日間)
Aviram Zilberman
Aviram Zilberman 2017 年 7 月 24 日
コメント済み: Aviram Zilberman 2017 年 7 月 25 日
Hi, My question referrers to the attached table : given a value for the parameter in the upper row, I need to match the value for the parameter in the lower row. Is there a matlab short code for doing that ? Thanks, Aviram

採用された回答

Jan
Jan 2017 年 7 月 24 日
編集済み: Jan 2017 年 7 月 24 日
X = [10.2, 7, 25];
Edge = [6, 7.8, 9, 10.8, 17, 18.8, 24, 24.6, Inf];
Bin = [6, 9, 12, 18, 24, 36, 48, 54];
Lambda = Bin(discretize(X, Edge));
  1 件のコメント
Aviram Zilberman
Aviram Zilberman 2017 年 7 月 25 日
Wow ! Thanks for the quick answer

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by