%% ELEC3004 - Problem Set 3 - Question 5 - INITIAL DATA
% Data for "State-Space: Just Our Cup of Tea" 
% Based on espressodata.m by Stephen Boyd, Lecture Notes for EE263, 2012
% (§ EE263 homework problems, Question 10.23, Page 88)

%% Initial Parameters
% Temperature in degrees C
% Time in seconds
n    = 10;   % Number of Elements. 
             % Feel free to update!  Though if you do you will need to change A!
Ta   = 22;   % Ambient temperature
Tl   = 100;  % Temperature of pre-heat water
Te   = 90;   % Temperature of tea
tfs  = 30;   % Time after pouring tea for first sip of tea (in seconds)
tres = 0.1;  % Time discretization/resolution (0.1 seconds) 
Tres = 0.1;  % Temperature discretization/resolution (0.1°C) 
A = [...     % The Tea Cup's System Model
 -1.00   1.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00;
 33.33 -44.44  11.11   0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00;
  0.00  11.11 -22.22  11.11   0.00   0.00   0.00   0.00   0.00   0.00   0.00;
  0.00   0.00  11.11 -22.22  11.11   0.00   0.00   0.00   0.00   0.00   0.00;
  0.00   0.00   0.00  11.11 -22.22  11.11   0.00   0.00   0.00   0.00   0.00;
  0.00   0.00   0.00   0.00  11.11 -22.22  11.11   0.00   0.00   0.00   0.00;
  0.00   0.00   0.00   0.00   0.00  11.11 -22.22  11.11   0.00   0.00   0.00;
  0.00   0.00   0.00   0.00   0.00   0.00  11.11 -22.22  11.11   0.00   0.00;
  0.00   0.00   0.00   0.00   0.00   0.00   0.00  11.11 -22.22  11.11   0.00;
  0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00  11.11 -22.22  11.11;
  0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00  11.11 -11.31;
];
