-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathshowResults.m
23 lines (18 loc) · 905 Bytes
/
showResults.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function showResults(objectTrajectory,objectTrajectoryEstimate,multiObjectMeasurementModel)
figure
hold on
for i = 1:length(objectTrajectory)
locationSequence = multiObjectMeasurementModel.observationMatrix*objectTrajectory(i).stateSequence;
plot(locationSequence(1,1),locationSequence(2,1),'ko','MarkerSize',8,'LineWidth',1.5)
plot(locationSequence(1,:),locationSequence(2,:),'k','LineWidth',1.5)
end
for i = 1:length(objectTrajectoryEstimate)
locationSequence = multiObjectMeasurementModel.observationMatrix*objectTrajectoryEstimate(i).stateSequence;
plot(locationSequence(1,1),locationSequence(2,1),'bo','MarkerSize',8,'LineWidth',1.5)
plot(locationSequence(1,:),locationSequence(2,:),'b','LineWidth',1.5)
end
xlim(multiObjectMeasurementModel.rangeOfInterest(1,:))
ylim(multiObjectMeasurementModel.rangeOfInterest(2,:))
xlabel('x-position (m)')
ylabel('y-position (m)')
end