-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcall_plotfB.m
61 lines (49 loc) · 1.87 KB
/
call_plotfB.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
function [] = call_plotfB(clbrsr,cols,modes,fitreslst,psfB,temps,cpg)
switch psfB
case 0
switch clbrsr
case 0
leglst={};
for i=1:1:cols
leglst=cat(1,leglst,strcat('fB_mode: ',num2str(modes(i))));
end
figure(4);
plot(fitreslst(:,1,1),fitreslst(:,3,1),'o');
hold on;
for i=2:1:cols
plot(fitreslst(:,1,i),fitreslst(:,3,i),'o');
end;
l=legend(leglst,'Location','northwest');
set(l,'Interpreter','none');
hold off;
case 3
leglst={};
for i=1:1:cols
tmean=mean(temps(:,i));
leglst=cat(1,leglst,strcat('fB_tempno ',num2str(cpg),'_Tmean=',num2str(tmean),' K'));
end
figure(4);
plot(fitreslst(:,1,1),fitreslst(:,3,1),'o');
hold on;
for i=2:1:cols
plot(fitreslst(:,1,i),fitreslst(:,3,i),'o');
end;
l=legend(leglst,'Location','northwest');
set(l,'Interpreter','none');
hold off;
end
case 1
switch clbrsr
case 0
figure(4);
plot(fitreslst(:,1,cpg),fitreslst(:,3,cpg),'o','MarkerSize',2);
l=legend(strcat('fB_mode: ',num2str(modes(cpg))),'Location','northwest');
set(l,'Interpreter','none');
case 3
figure(4);
plot(fitreslst(:,1,cpg),fitreslst(:,3,cpg),'o','MarkerSize',2);
tmean=mean(temps(:,cpg));
l=legend(strcat('fB_tempno ',num2str(cpg),'_Tmean=',num2str(tmean),' K'),'Location','northwest');
set(l,'Interpreter','none');
end
end