Mapping non-integer values of matrix to another matrix via mapping table
조회 수: 1 (최근 30일)
이전 댓글 표시
Dear all,
I would like to do a mapping operation as in this thread, only with real numbers and not integers. To illustrate, suppose I have the vector
v=[0.5 1.3 0.7 3 0.7 1.3];
as well as a mapping table
m=[0.5 4; 0.7 5; 1.3 6; 3 7]
I would like to transform v via mapping m into
w=[4 6 5 7 5 6];
if possible without using a loop. Does anyone have an idea? Thanks a lot in advance for your time!
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!