-
Notifications
You must be signed in to change notification settings - Fork 0
/
sandbox.m
64 lines (52 loc) · 970 Bytes
/
sandbox.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
function sandbox
msg = '';
for i=1:10
msg = strcat(msg,num2str(i));
msg = strcat(msg,'\n');
end
msg
return
%% Never reached..................
% x = [0,1];
% y = [0,1];
% z = [0,1];
% x=[0.9987,0.1936];
% y=[0.0500,0.0500];
% z=[0.5505,1.3000];
x = [
0.9987 0.1936
0.9987 0.1936
-0.5427 -0.1401
-0.4561 -0.0535
-0.4561 -0.0535
-0.5427 -0.1401
];
y =[
0.0500 0.0500
-0.0500 -0.0500
0.8399 0.1427
0.8899 0.1927
-0.8899 -0.1927
-0.8399 -0.1427
];
z = [
0.5505 1.3000
0.5505 1.3000
0.5505 1.3000
0.5505 1.3000
0.5505 1.3000
0.5505 1.3000
];
plot3(x,y,z,'b','LineWidth', 5);
setupgraph();
function setupgraph
xlabel('x','FontSize',14);
ylabel('y','FontSize',14);
zlabel('z','FontSize',14);
set(gca,'FontSize',14);
axis vis3d equal;
view([-37.5, 30]);
camlight;
grid on;
end
end