Vertical Lookup of values stored in a matrix

13 vues (au cours des 30 derniers jours)
Stephen Fry
Stephen Fry le 22 Oct 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 commentaires
James Tursa
James Tursa le 22 Oct 2015
Please provide a short example.
dpb
dpb le 22 Oct 2015
While we're waiting for that example, lookup "logical addressing" and interp1

Connectez-vous pour commenter.

Réponses (1)

Stephen Fry
Stephen Fry le 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.

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by