if strcmp(choice,'Detail')
[q,tf] = listdlg("PromptString",'Choose a material', "ListString", Information.Material);
if tf == 1
x0 = (q*2)-1;
y0 = q*2;
for D = 1:1:length(q)
plot(Data(x0(D),2:end),Data(y0(D),2:end),Information.Format{q(D)})
grid on
hold on
lnd{L} = Information.Material{q(D)};
L = L+1;
end
xlim([0 10])
ylim([0 100])
xlabel('Time (t) [min]');
ylabel('Temperature difference (T) [°C]');
title('Detailed Plot of Selected Materials');
end
if tf == 0
error('PLEASE MAKE A SELECTION')
end
end