How do I extract Trajectory Data using NGSIM dataset?
19 views (last 30 days)
Show older comments
idris
on 4 Jun 2024
Commented: Aravindhan Mathivanan
on 20 Nov 2024 at 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 Comment
Aravindhan Mathivanan
on 20 Nov 2024 at 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.
Accepted Answer
Gagan Agarwal
on 11 Jun 2024
Edited: Gagan Agarwal
on 11 Jun 2024
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!
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!