Vertical Lookup of values stored in a matrix

13 Ansichten (letzte 30 Tage)
Stephen Fry
Stephen Fry am 22 Okt. 2015
Beantwortet: Stephen Fry am 22 Okt. 2015
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 Kommentare
James Tursa
James Tursa am 22 Okt. 2015
Please provide a short example.
dpb
dpb am 22 Okt. 2015
While we're waiting for that example, lookup "logical addressing" and interp1

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Stephen Fry
Stephen Fry am 22 Okt. 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.

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by