Ground truth of road sign as look-up table

4 views (last 30 days)
Keunwook Chung
Keunwook Chung on 19 Apr 2022
Answered: Shlok on 4 Dec 2024
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

Answers (1)

Shlok
Shlok on 4 Dec 2024
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:
  • 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.
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:

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!