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 个评论
Walter Roberson
2020-7-19
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
2020-7-19
Walter Roberson
2020-7-19
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
2020-7-19
Walter Roberson
2020-7-19
containers.Map
Or
[~, idx] = ismember(InputAlpha, YourTable. Alpha)
YourTable.CL(idx)
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!