Vertical Lookup of values stored in a matrix

13 visualizzazioni (ultimi 30 giorni)
Stephen Fry
Stephen Fry il 22 Ott 2015
Risposto: Stephen Fry il 22 Ott 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 Commenti
James Tursa
James Tursa il 22 Ott 2015
Please provide a short example.
dpb
dpb il 22 Ott 2015
While we're waiting for that example, lookup "logical addressing" and interp1

Accedi per commentare.

Risposte (1)

Stephen Fry
Stephen Fry il 22 Ott 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.

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by