How do I extract data from multi-object tracker that includes multi timeseries structures?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Marshall Botta
il 4 Ago 2023
Commentato: Marshall Botta
il 23 Ago 2023
I've been trying to figure out how to extract state and state covariance from multi-object tracker within simulink, but no prevail. It seems like bus selector or selector block can't grab the multi timeseries vector for state and state covariance.
The two pictures is the multi-object tracker for reference and the outputted data in the matlab workspace.
0 Commenti
Risposta accettata
Yash Sharma
il 23 Ago 2023
According to my understanding you want to select two outputs after the ‘data concatenation’ block namely ‘State’ and ‘StateCovariance’.
You can use a “MATLAB Function” block in Simulink to extract the desired elements from the multi-timeseries vector. Within the MATLAB Function block, you can write custom MATLAB code to access and manipulate the data. Here's an example of how you can extract the state and state covariance elements using a MATLAB Function block.
function [state, stateCov] = extractStateAndCovariance(data)
state = data.State;
stateCov = data.StateCovariance;
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Tracking and Sensor Fusion in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!