From 2bba5824fa60e66d55d077fc55fcf38b6d70be69 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Tue, 23 Feb 2010 14:53:30 +0000 Subject: [PATCH] use sparse --- matlab/example/christian01.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matlab/example/christian01.m b/matlab/example/christian01.m index 65856310d..777a621c6 100644 --- a/matlab/example/christian01.m +++ b/matlab/example/christian01.m @@ -20,7 +20,7 @@ plot(map(1,:), map(2,:),'g.'); hold on; axis([0 mappingArea(1) 0 mappingArea(2)]);axis square; % Check visibility and plot this on the problem figure -visibility = create_visibility(map, trajectory,10); +visibility = create_visibility(map, trajectory,20); gplot(visibility,[map trajectory]'); % simulate the measurements @@ -39,7 +39,8 @@ ord = create_ordering(n,m); % show the matrix figure(2); clf; -A = factorGraph.matrix(ord); +ijs = factorGraph.sparse(ord); +A=sparse(ijs(1,:),ijs(2,:),ijs(3,:)); spy(A); % optimizing a BayesNet is not possible from MATLAB as