MATLAB: Can I display position and velocity errors between truth vector and reconstructed vector

Sensor Fusion and Tracking Toolbox

In the following example:
Do we know the quality difference between the truth vector and reconstructed vectors in terms on position (m) and velocity(m/s)?
Is it possible to add position error and velocity error columns to the output?

Best Answer

Yes, They are stored in the variables "truthMetrics" and "trackMetrics".
You can display them in the command prompt using the following commands:
>> disp(trackMetrics)
>> disp(truthMetrics)
You can append them to your output table by modifying this line of code:
assignmentTable(endTime,{'TrackID','AssignedTruthID','TotalLength','DivergenceCount','RedundancyCount','RedundancyLength','truthMetrics','trackMetrics'})
This is further elaborated in the following example: