Creating a lookup table f code or my values

I want to create a lookup table that have two columns the first one is alpha values and the second one is the values of lift coefficients CL corresponding to alpha . How can I do that ?

5 comentarios

Walter Roberson
Walter Roberson el 19 de Jul. de 2020
how do you want to use the lookup table?
interp1 if the alpha are monotonic and you want to interpolate values.
If you want to look up by alpha value that is one of a discrete set then possibly containers.Map
Maryam Alshehhi
Maryam Alshehhi el 19 de Jul. de 2020
I already have a big table of data that have 14 columns , from this table I want to create lookup table for the alpha column and the CL column corresponding to it ? How can I write the code ?
Walter Roberson
Walter Roberson el 19 de Jul. de 2020
In your table object that has 14 columns, are the alpha values monotonic?
When you go to use the lookup table, will the inputs be exactly (bit for bit identical) to one of the existing alpha values? Will the inputs be nearly identical to the existing alpha values except for round-off error? Or will the inputs be mostly different, with the expectation that interpolation will take place?
Maryam Alshehhi
Maryam Alshehhi el 19 de Jul. de 2020
Yes , I want the lookup table to have the identical and the same alpha and CL that I have in the 14 columns one , but I don’t know how to write the code should I use LUT ?
containers.Map
Or
[~, idx] = ismember(InputAlpha, YourTable. Alpha)
YourTable.CL(idx)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interpolation en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 19 de Jul. de 2020

Comentada:

el 19 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by