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

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

eml_invariant(nargin > 1, ...
    'MATLAB:minrhs');
% This pragma makes calls in pol2cart inherit any implicit expansion
% behavior requested at a call to pol2cart.
coder.internal.implicitExpansionBuiltin;
x = r.*cos(th);
y = r.*sin(th);
