Vertical Lookup of values stored in a matrix

조회 수: 13 (최근 30일)
Stephen Fry
Stephen Fry 2015년 10월 22일
답변: Stephen Fry 2015년 10월 22일
What functions are available to lookup values in a matrix using one of the columns as an index? The corollary function in Excel would be "VLOOKUP(index,array,col_num,approx?)". I have tried implementing Simulink's n-D Table Lookup, but it won't let me edit it. Also, I need this to run within a Matlab program within a for-loop.
  댓글 수: 2
James Tursa
James Tursa 2015년 10월 22일
Please provide a short example.
dpb
dpb 2015년 10월 22일
While we're waiting for that example, lookup "logical addressing" and interp1

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

답변 (1개)

Stephen Fry
Stephen Fry 2015년 10월 22일
While continuing my search, I found this Access Data in a Table by accident. It needs to publicized more. This will perform both vertical and horizontal lookup for tables, but maybe not matrices. Anyways, it suits my purpose just fine.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by