% 读取数据
data1 = readtable('12.xlsx', 'Sheet', 1); % 使用readtable替换readmatrix
fortsize = 15;
linewidthbox = 1;
linewidth = 1.5;
% 创建图形窗口
figure;
hold on;
box on;
set(gca, 'linewidth', linewidthbox);
% 绘制数据曲线
subplot(3, 1, 1);
x1 = data1(1:end, 1);
x1
y1 = data1(1:end, 2:end);
y1
for i = 1:size(y1, 2)
plot(x1, y1(:, i));
end
title('25');
xlabel('T2/ms', 'FontSize', 13, 'FontName', 'Times New Roman');
ylabel('信号值/a.u.', 'FontSize', 13, 'FontName', 'Microsoft YaHei');
xticks([10^-2 10^-1 10^0 10^1 10^2 10^3 10^4]);
set(gca, 'XScale', 'log');
set(gca, 'TickLength', [0.02, 0.035]);