write a function file [p_sat, message] = function_sat(t, t) that takes input arguments the refrigerant name r as a string and the regrigerant temperature in celsious as arrays in matlab
main.m
function[p_sat, message] = function_sat(r, t)% Function to calculate saturation pressure% Check if the refrigerant is a stringif ischar(r)
% Assuming r is a valid refrigerant string% Check if t is an arrayif isnumeric(t)
% Perform calculations based on the arrays t% Your calculations here to calculate p_sat% Assigning a dummy value for p_sat p_sat = 100;
message = 'Calculation successful';
else error('Temperature input should be an array');
endelse error('Refrigerant name should be a string');
endend