There are 2.5 main ways of sharing Matlab code with people without Matlab and still keeping it interactive.
- Compile your project to an executable. This requires you to have a valid license for the coder toolbox, and will (always or in general) require the end use to install the MCR (Matlab Runtime Compiler) for the version you used to compile your project. They can be big (>500MB), but they are free to use under most circumstances (you should always check if you intend to sell your work). Last time I did something like this, I had the option to include the MCR in the 'setup' for my program.
- Use GNU Octave. This will require debugging and means you can't obfuscate your code. It is free, so you can freely distribute it, but it is almost always slower, has less functions, has more bugs and sometimes requires downloading and installing another package to access more advanced functions. 'Nothing is free' is something you will notice if you use Octave, but it can be a really good option under some circumstances.
- Compile your project to an executable with Octave. This combines most of the downsides of both previous methods, but if you really want to, you can do it.
There may be other options, but these are the main, easily accessible ways to share an interactive 3D plot.