
% Clears command window and then the workspace
clc
clear

% Plotting preamble that makes nice figures
set(0,'DefaultTextFontName','Times',...
'DefaultTextFontSize',16,...
'DefaultAxesFontName','Times',...
'DefaultAxesFontSize',16,...
'DefaultLineLineWidth',2,...
'DefaultLineMarkerSize',7.75)


% Creating variables (semi colon supresses output in command window) 
Kc = 0.1;
tauI = 20;
% Collecting the data from the simulink file
out = sim("shower.slx");
y_val = out.y;
% Plot the result
plot(out.y)

%Access data
%disp(y_val.Time) %or .Data
% disp(X) prints x to command window
%disp(Kc+tauI)

