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 Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by