export interactive 3D stem plot

7 views (last 30 days)
Stephen Devlin
Stephen Devlin on 12 Jan 2018
Answered: Rik on 12 Feb 2018
Hi,
I have looked online for ways to share a Matlab 3D plot and keep it interactive, I have a stem plot (could plot it as a scatter) and it looks like most of the methods for sharing only use mesh/surf etc. Is there a way to do it without the person having to have a Matlab license?
Best regards
Steve

Answers (1)

Rik
Rik on 12 Feb 2018
There are 2.5 main ways of sharing Matlab code with people without Matlab and still keeping it interactive.
  1. 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.
  2. 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.
  3. 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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!