MATLAB Answers

Is there a way to export/save a matlab 3D figure so that a 3rd party can view it with the rotation enabled without using Matlab?

139 views (last 30 days)
Megha
Megha on 26 Jul 2019
Commented: Luca Vacca on 23 Nov 2020 at 10:47
Is there a way to export/save a matlab 3D figure so that a 3rd party can view it with the rotation enabled without using Matlab?

  2 Comments

dpb
dpb on 26 Jul 2019
As a figure, probably not...it's proprietary format and the interface is all built into the MATLAB window functionality.
Best I can think of would be to export the data to create the figure in some form the user can do...
There are some Toolboxen for compiled apps for distribution and some runtime components available...if this is a real need, probably ought to check with TMW Sales Support and see if they have solution.

Sign in to comment.

Answers (2)

Maadhav Akula
Maadhav Akula on 29 Jul 2019
You can use the Application Compiler in MATLAB to build a standalone application, which ensures that the 3rd party (who doesn’t have MATLAB) can also view the 3D Figure. But in your case the 3rd party has to install MATLAB Runtime (which is packaged along with the standalone application). The link below explains on how to build a standalone application :-
Hope this helps!

  0 Comments

Sign in to comment.


Walter Roberson
Walter Roberson on 29 Jul 2019
Edited: Walter Roberson on 30 Jul 2019

  7 Comments

Show 4 older comments
Megha
Megha on 30 Jul 2019
Dear Dr. Walter Roberson, thank you for your detailed explanation.
I could completely follow your steps and got it installed! Could you please provide a small example now, how to use fig2u3d command to save figure to inteactive pdf format. Suppose I have:
[X,Y,Z] = peaks(30);
surf(X,Y,Z);
fvc = u3d_pre;
3D rotatable figure. Now now can i use fig2u3d command to save figure to inteactive pdf format?
Walter Roberson
Walter Roberson on 30 Jul 2019
[X,Y,Z] = peaks(30);
surf(X,Y,Z);
fig2u3d
However, the code appears to need some repairs. I have repaired the most obvious problem in my version but have reached out to Mathworks for assistance with a more subtle problem.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!