Vertical Lookup of values stored in a matrix

14 views (last 30 days)
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 Comments
dpb
dpb on 22 Oct 2015
While we're waiting for that example, lookup "logical addressing" and interp1

Sign in to comment.

Answers (1)

Stephen Fry
Stephen Fry on 22 Oct 2015
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.

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!