MATLAB code for binary distillation

Input :
xF -Molar Concentration of feed
xB - Molar Concentration of Bottoms product
xD - Molar Concentration of Distillate
R - Reflux ratio
Antoine Constants for the two components
Output -
Ideal No. of stages
Murphree Efficiency