diff --git a/matlab/examples/StereoVOExample.m b/matlab/examples/StereoVOExample.m index b3c834a93..661b9aee8 100644 --- a/matlab/examples/StereoVOExample.m +++ b/matlab/examples/StereoVOExample.m @@ -60,7 +60,7 @@ result = graph.optimize(initialEstimate); toc %% visualize initial trajectory, final trajectory, and final points -figure(1); clf; hold on; +cla; hold on; % initial trajectory in red (rotated so Z is up) plot3(initialEstimate.zs(),-initialEstimate.xs(),-initialEstimate.ys(), '-*r','LineWidth',2); @@ -73,5 +73,6 @@ xlabel('X (m)'); ylabel('Y (m)'); zlabel('Z (m)'); points = result.points(); plot3(points(:,3),-points(:,1),-points(:,2),'.'); +axis([-4 4 -4 4 -4 4]); axis equal view(3) diff --git a/matlab/examples/gtsamExamples.m b/matlab/examples/gtsamExamples.m index 67d4f1c27..b3862088a 100644 --- a/matlab/examples/gtsamExamples.m +++ b/matlab/examples/gtsamExamples.m @@ -134,7 +134,10 @@ echo off % --- Executes on button press in StereoVO. function StereoVO_Callback(hObject, eventdata, handles) -fprintf(1,'StereoVOExample not implemented yet\n'); +axes(handles.axes3); +echo on +StereoVOExample +echo off % --- Executes on button press in Future. function Future_Callback(hObject, eventdata, handles)