function [x,y,z] = pol2cart(th,r,z)
%MATLAB Code Generation Library Function

%   Original MATLAB version  L. Shure, 4-20-92.
%   Copyright 2002-2014 The MathWorks, Inc.
%#codegen

eml_invariant(nargin > 1, ...
    'MATLAB:minrhs');
x = r.*cos(th);
y = r.*sin(th);
