MATLAB Code:
close all
clear
clc
% Limits of temperature, pressure and flow rate
TL = 350; TH = 360;
PL = 650; PH = 760;
FL = 350; FH = 415;
% Sample input
T = 355; P = 600; F = 400;
if T < TL
disp('Temperature is too low.')
else
if T > TH
disp('Temperature is too high.')
end
end
if P < PL
disp('Pressure is too low.')
else
if P > PH
disp('Pressure is too high.')
end
end
if F < FL
disp('Flow rate is too low.')
else
if F > FH
disp('Flow rate is too high.')
end
end
Sample Output for the Sample Input:
Pressure is too low.
16. A process engineer at an oil refinery is tasked with monitoring the status of a distillation column. To function safely and effectively, the temperature, pressure, and crude oil flow rate nee...