diff options
Diffstat (limited to 'SD-VBS/common/toolbox/toolbox_basic/fact/show_3dpoints.m')
-rwxr-xr-x | SD-VBS/common/toolbox/toolbox_basic/fact/show_3dpoints.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/SD-VBS/common/toolbox/toolbox_basic/fact/show_3dpoints.m b/SD-VBS/common/toolbox/toolbox_basic/fact/show_3dpoints.m new file mode 100755 index 0000000..b6edfd5 --- /dev/null +++ b/SD-VBS/common/toolbox/toolbox_basic/fact/show_3dpoints.m | |||
@@ -0,0 +1,22 @@ | |||
1 | function show_3dpoints(S) | ||
2 | |||
3 | |||
4 | for j=1:size(S,2), | ||
5 | x = S(1,j); | ||
6 | y = S(2,j); | ||
7 | z = S(3,j); | ||
8 | plot3(x,y,z,'*'); | ||
9 | hold on; | ||
10 | plot3([x,0],[y,0],[z,0],'r'); | ||
11 | % plot3([x,x],[y,y],[z,0],'r'); | ||
12 | % plot3([x,0],[y,y],[z,z],'r'); plot3([x,x],[y,0],[z,z],'r'); | ||
13 | text(x,y,z,int2str(j)) | ||
14 | % plot3(x,y,0,'co'); | ||
15 | end | ||
16 | |||
17 | grid on | ||
18 | xlabel('x'); | ||
19 | ylabel('y'); | ||
20 | zlabel('z'); | ||
21 | |||
22 | hold off \ No newline at end of file | ||