필터 지우기
필터 지우기

mapping a value to a vector

조회 수: 2 (최근 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개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by