function heatex_plotdata()
% Plots experimental step data

% Copyright 2020 The MathWorks, Inc.

%---Clear/Reset axes
ax = gca;
cla(ax)

%---Step data
step_data = [ ...
      0.0000    0.0113    1.0000; ...
     10.0000    0.0162    1.0000; ...
     20.0000    0.1947    1.0000; ...
     30.0000    0.5591    1.0000; ...
     40.0000    0.7050    1.0000; ...
     50.0000    0.7744    1.0000; ...
     60.0000    0.9218    1.0000; ...
     70.0000    0.9208    1.0000; ...
     80.0000    0.9852    1.0000; ...
     90.0000    0.9575    1.0000; ...
    100.0000    1.0546    1.0000; ...
    110.0000    0.9873    1.0000; ...
    120.0000    1.0258    1.0000; ...
    130.0000    0.9930    1.0000; ...
    140.0000    1.0203    1.0000; ...
    150.0000    1.0605    1.0000; ...
    160.0000    0.9637    1.0000; ...
    170.0000    1.0051    1.0000; ...
    180.0000    0.9878    1.0000; ...
    190.0000    0.9876    1.0000; ...
    200.0000    1.0349    1.0000];

h = ltiplot(ax,'step',{''},{''},[],cstprefs.tbxprefs);
plot(h,step_data(:,1),step_data(:,2));
set(gca,'xlim',[0 200],'ylim',[0 1.2]);
ylabel('Tank temperature (normalized)');
grid on;

% Display Experimental Data
setstyle(get(h,'Responses'),'r-*');
h.Visible = 'on';

%---Steady-state (norm)
line('Parent',ax, ...
    'XData',[0 200], ...
    'YData',[1 1], ...
    'LineStyle','--', ...
    'Color','m');

%---Plot the t1,t2 lines
line('Parent',ax, ...
    'XData',[36  36 NaN 23  23 NaN 0.0   23  NaN 0.0   36], ...
    'YData',[0.634 0.0  NaN 0.286 0.0  NaN 0.286 0.286 NaN 0.634 0.634], ...
    'LineWidth',2, ...
    'LineStyle','-.', ...
    'Color','b');
text('Parent',ax,'Pos',[22 0.1],'String','  t_1','Horiz','left');
text('Parent',ax,'Pos',[35 0.1],'String','  t_2','Horiz','left');

