How do I extract Trajectory Data using NGSIM dataset?

19 ビュー (過去 30 日間)
idris
idris 2024 年 6 月 4 日
コメント済み: Aravindhan Mathivanan 2024 年 11 月 20 日 19:26
It is required to extract trajectory data along with the frame number, vehicle ID, lane number, time, and position for the target vehicles in US-101 category of the Next Generation Simulation (NGSIM) dataset; however, after successfully reading the file with "data = readtable('pre-processing.csv')", one proceeded to use "Features=[categorical(pre-processing.csv,trajectory)]", but was flagging an error, kindly help.
  1 件のコメント
Aravindhan Mathivanan
Aravindhan Mathivanan 2024 年 11 月 20 日 19:26
Hi Idris,
I'm also working on extracting the trajectory data from NGSIM dataset, but i don't know from where to start. Please kindly help.

サインインしてコメントする。

採用された回答

Gagan Agarwal
Gagan Agarwal 2024 年 6 月 11 日
編集済み: Gagan Agarwal 2024 年 6 月 11 日
Hi Idris
It seems like there's a misunderstanding in the syntax and function usage in your code snippet. When you're working with MATLAB, after reading a CSV file into a table using "readtable", we don't use the file name again within your operations. Instead, we operate on the variable that now contains the table data, which in this case is "data".
I hope it helps!
  1 件のコメント
idris
idris 2024 年 6 月 11 日
Yes. I meant filtering the US-101 data from the 'Location' column and thereafter, perfrom the following:
1. Filter Vehicles on Lanes 1-5:
- Consider only the vehicles present on lanes 1 to 5.
2. Identify Target Vehicles on Lanes 2-4:
- Find the target vehicles that are present on lanes 2 to 4.
3. Extract Trajectory Data:
- Extract the trajectory data along with the frame number, vehicle ID, lane number, time, and position for the target vehicles.
4. Frame-by-Frame Analysis for Each Target Vehicle:
- For each target vehicle, process the data frame by frame.
4.1 Identify Vehicles in Each Frame:
- For each frame, identify the target vehicle and the surrounding vehicle IDs.
4.2 Determine Positions:
- Find the positions of the identified vehicles.
5. Save Variables:
- Save all variables for the target vehicle.
6. Repeat for Next Target Vehicle:
- Repeat steps 3 to 5 for the next target vehicle
Kindly guide.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by