| 
									
										
										
										
											2012-07-24 21:35:04 +08:00
										 |  |  | function plotPoint3(p, color, P)
 | 
					
						
							|  |  |  | %PLOTPOINT3 Plot a Point3 with an optional covariance matrix | 
					
						
							|  |  |  | if size(color,2)==1 | 
					
						
							| 
									
										
										
										
											2020-08-18 02:37:12 +08:00
										 |  |  |     plot3(p(1),p(2),p(3),[color '*']); | 
					
						
							| 
									
										
										
										
											2012-07-24 21:35:04 +08:00
										 |  |  | else | 
					
						
							| 
									
										
										
										
											2020-08-18 02:37:12 +08:00
										 |  |  |     plot3(p(1),p(2),p(3),color); | 
					
						
							| 
									
										
										
										
											2012-07-24 21:35:04 +08:00
										 |  |  | end | 
					
						
							|  |  |  | if exist('P', 'var') | 
					
						
							| 
									
										
										
										
											2020-08-18 02:37:12 +08:00
										 |  |  |     gtsam.covarianceEllipse3D([p(1);p(2);p(3)],P); | 
					
						
							| 
									
										
										
										
											2012-07-24 21:35:04 +08:00
										 |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 |