-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestPlots.m
79 lines (62 loc) · 1.94 KB
/
TestPlots.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
%Put some test plots here
%--------------------------------------------------------------------------
%plot the actual hippocampus
figure;scatter3(x,y,z,[],u);
figure;scatter3(x,y,z,[],v);
figure;scatter3(x,y,z,[],w);
%--------------------------------------------------------------------------
%plot the unfolded "block" this is to demonstrate issue with the laplace
%fields not covering the whole (u,v) domain for all w values
figure;
subplot(2,2,1);
scatter3(u,v,w,[],y);
view(0,90);
zlim([0.75 1])
title('w slice=0.75 to 1 colormap=w');
xlabel('u');ylabel('v');
subplot(2,2,2);
scatter3(u,v,w,[],y);
view(0,90);
zlim([0.5 0.75])
title('w slice=0.5 to 0.75 colormap=w');
xlabel('u');ylabel('v');
subplot(2,2,3);
scatter3(u,v,w,[],y);
view(0,90);
zlim([0.25 0.5])
title('w slice=0.25 to 0.5 colormap=w');
xlabel('u');ylabel('v');
subplot(2,2,4);
scatter3(u,v,w,[],y);
view(0,90);
zlim([0 0.25])
title('w slice=0 to 0.25 colormap=w');
xlabel('u');ylabel('v');
%--------------------------------------------------------------------------
%scatter x(u,v) y(u,v) and z(u,v)
figure;
subplot(1,3,1);scatter(u,v,[],w);
title('x(u,v)');
subplot(1,3,2);scatter(u,v,[],y);
title('y(u,v)');
subplot(1,3,3);scatter(u,v,[],z);
title('z(u,v)');
figure;scatter(u,w,[],v);
xlabel('u');
%--------------------------------------------------------------------------
%scatteredInperpolant x(u,v) y(u,v) and z(u,v)
Nu=100; samplingu=0:1/(Nu-1):1;
Nv=100; samplingv=0:1/(Nv-1):1;
Nw=10; samplingw=0:1/(Nw-1):1;
[gu,gv,gw]=meshgrid(samplingu,samplingv,samplingw);
Xi=Fi_L(gu,gv,gw);
Yi=Fj_L(gu,gv,gw);
Zi=Fk_L(gu,gv,gw);
figure;
subplot(1,3,1);imagesc(flipud(squeeze(Xi(:,:,5))));
title('x(u,v)');
subplot(1,3,2);imagesc(flipud(squeeze(Yi(:,:,5))));
title('y(u,v)');
subplot(1,3,3);imagesc(flipud(squeeze(Zi(:,:,5))));
title('z(u,v)');
%--------------------------------------------------------------------------