MATLAB Answers

Struct with cell array to timeseries for Simulink implementation

2 views (last 30 days)
Dylan Frijters
Dylan Frijters on 23 Apr 2021
From the Driving Scenario Designer (Automated Driving Toolbox) I have gathered some radar measurements in the form a struct with the fields Time and ObjectDetections. The ObjectDetections contain a variable number of cells witht the object data. This looks as shown below.
I created this data using Matlab 2021, but for some specific reasons I need to use this data as input in a 2017b Simulink model, but I'm only interested in the measurement data in RadarData_L(:),ObjectDetections(:,1). I tried to convert it to a timeseries object, but then the error 'The first argument must contain the data.' pops up. Should I use timeseries or is there another alternative?

Answers (0)

Community Treasure Hunt

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

Start Hunting!