-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdrawspec.m
47 lines (46 loc) · 1.31 KB
/
drawspec.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
%% Drawing of spectrum thermal conductivity map
tempframe=1000;
tempgap=10;
energyframe=700;
energygap=1;
specfl= fileread("GaN_anhrm_7_3br_pure.kl_spec");
AA = regexp(specfl, '\r\n|\r|\n', 'split');
tflag=0;
xxsp1=zeros(energyframe/energygap+1,tempframe/10+1);
yysp1=zeros(energyframe/energygap+1,tempframe/10+1);
zzsp1=zeros(energyframe/energygap+1,tempframe/10+1);
for i=1:(tempframe/10+1)
lflag=0;
for j=1:(energyframe/energygap+2)
tflag=tflag+1;
lflag=lflag+1;
if lflag ~= 1
splt=regexp(AA{tflag},' *','split');
xxsp1(j,i)=str2double(splt{4});
yysp1(j,i)=str2double(splt{5});
zzsp1(j,i)=str2double(splt{6});
end
end
end
%%
subplot(3,1,1)
imagesc([0,1000],[0,700],log10(xxsp));
title('\kappa_{xx}((log(W/(m·K)·cm))')
xlabel('Temperature (K)')
ylabel('Wavenumber (cm^{-1})')
colormap jet;
colorbar eastoutside;
subplot(3,1,2)
imagesc([0,1000],[0,700],log10(yysp));
title('\kappa_{yy}((log(W/(m·K)·cm))')
xlabel('Temperature (K)')
ylabel('Wavenumber (cm^{-1})')
colormap jet;
colorbar eastoutside;
subplot(3,1,3)
imagesc([0,1000],[0,700],log10(zzsp));
title('\kappa_{zz}((log(W/(m·K)·cm))')
xlabel('Temperature (K)')
ylabel('Wavenumber (cm^{-1})')
colormap jet;
colorbar eastoutside;