| 
									
										
										
										
											2012-06-05 21:29:26 +08:00
										 |  |  | function plotPoint2(p,color,P)
 | 
					
						
							| 
									
										
										
										
											2012-09-08 13:28:25 +08:00
										 |  |  | % plotPoint2 shows a Point2, possibly with covariance matrix | 
					
						
							| 
									
										
										
										
											2012-06-05 21:29:26 +08:00
										 |  |  | if size(color,2)==1 | 
					
						
							| 
									
										
										
										
											2020-08-18 02:37:12 +08:00
										 |  |  |     plot(p(1),p(2),[color '*']); | 
					
						
							| 
									
										
										
										
											2012-06-05 21:29:26 +08:00
										 |  |  | else | 
					
						
							| 
									
										
										
										
											2020-08-18 02:37:12 +08:00
										 |  |  |     plot(p(1),p(2),color); | 
					
						
							| 
									
										
										
										
											2012-06-05 21:29:26 +08:00
										 |  |  | end | 
					
						
							| 
									
										
										
										
											2012-09-19 01:48:20 +08:00
										 |  |  | if exist('P', 'var') && (~isempty(P)) | 
					
						
							| 
									
										
										
										
											2020-08-18 02:37:12 +08:00
										 |  |  |     gtsam.covarianceEllipse([p(1);p(2)],P,color(1)); | 
					
						
							| 
									
										
										
										
											2012-06-05 21:29:26 +08:00
										 |  |  | end |