Hi,
I assume the above code is taken from Fresnel Propagation using the Transfer function File Exchange Submission. Since I didn’t find any resources to incorporate the cases of different incidence angle through my search, I would recommend posting the query directly to the submission page in comments and Ratings section so that original Author can help you out based on his/her domain knowledge.