function [x2] = output_transform(y,d,u)

T_2 = y;

T_0 = u(1);                          %Temperature of inlet to tank 1 [degC]
F_2 = u(2);
F_1 = u(3);

F_0 = d(1);                               %Flow of inlet to tank 1 [m3/min]
F_2d = d(2);                         %Flow of disturbance to tank 2 [m3/min]
T_2d = d(3);                    %Temperature of disturbance to tank 2 [degC]
F_1d = d(4);
T_1d = d(5);

x2 = (T_2*F_2-T_2d*F_2d)/F_1;


end

