Vertical Lookup of values stored in a matrix

13 visualizaciones (últimos 30 días)
Stephen Fry
Stephen Fry el 22 de Oct. de 2015
Respondida: Stephen Fry el 22 de Oct. de 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 comentarios
James Tursa
James Tursa el 22 de Oct. de 2015
Please provide a short example.
dpb
dpb el 22 de Oct. de 2015
While we're waiting for that example, lookup "logical addressing" and interp1

Iniciar sesión para comentar.

Respuestas (1)

Stephen Fry
Stephen Fry el 22 de Oct. de 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.

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by