- Set "Breakpoints 1" to the latitude values.
- Set "Breakpoints 2" to the longitude values.
- Enter the road sign index data in the "Table data" field.
Ground truth of road sign as look-up table
4 次查看(过去 30 天)
显示 更早的评论
To whom it may concern,
I am wondering how a look-up table can be formulated in Simulink.
The data consists of lat. long. and corresponding informations as below..
col1 (lat) col2(long.) road sign index info
37.35 128.38 1
37.36 129.25 3
.... ....
What I am intending is to find the closest corresponding road sign index info based on latitude & longitude received from GPS. Could anyone give me some tip which type of look-up table should be used?
Best regards,
KW
0 个评论
回答(1 个)
Shlok
2024-12-4
Hi Keunwook,
A 2D Lookup Table would be most suitable in finding the closest corresponding road sign for a particular latitude and longitude. This lookup table will have two input parameters i.e. latitude and longitude which can be configured using Breakpoints.
The lookup table can be configured as follows:
1. First set the "Number of table dimensions" to 2.
2. Then under "Table and Breakpoints", enter the data:
3. Now go to the "Algorithm" tab and set "Interpolation method" as "Nearest" for discrete road signs.
Therefore, using a 2D Lookup Table with nearest neighbour interpolation will provide a quick access to the closest matching data point. This approach works for latest releases as well.
To know more about “2D Lookup Table” block, refer to the following documentation link:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lookup Tables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!