You would need MATLAB Coder, which generates C or C++ code. MATLAB Coder is fairly restricted in what it can transcribe. It is best at pure mathematical operations; it cannot, for example, generate any graphics.
If you used MATLAB Coder, you would need to compile the code to create an executable. It is likely that you would need the user to install the run-time libraries of which-ever compiler you use.