source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/MultiCamValidation/InputOutputFunctions/drawcloud.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 546 bytes
Line 
1% drawcloud ... draw point cloud
2%
3% [fig] = drawcloud(X,fig,{color})
4%
5% X ... 3xn matrix containing the points
6%       if X is 4xn only the first 3 rows are used
7% fig . figure handle
8% color color of plotting; defaults to blue
9%
10% fig . return the figure handle
11%
12% $Id: drawcloud.m,v 2.0 2003/06/19 12:07:12 svoboda Exp $
13
14function [fig] = drawcloud(X,fig,color)
15if nargin < 3
16  color = 'b';  % default color
17end
18
19figure(fig), hold on
20plot3(X(1,:),X(2,:),X(3,:),[color,'o'])
21
22
23view([1,1,1]);
24axis('equal');
25grid on
26rotate3d on
27fig=fig;
28return
Note: See TracBrowser for help on using the repository browser.