MATLAB Answers

0

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?

Megha Pandya さんによって質問されました 2019 年 7 月 26 日
最新アクティビティ Walter Roberson
さんによって コメントされました 2019 年 7 月 30 日
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 件のコメント

dpb
2019 年 7 月 26 日
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.
3D pdf .or once i converted the 3D to autocad using https://uk.mathworks.com/matlabcentral/fileexchange/33884-dxflib

サインイン to comment.

2 件の回答

回答者: Maadhav Akula 2019 年 7 月 29 日

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 件のコメント

サインイン to comment.


回答者: Walter Roberson
2019 年 7 月 29 日
編集済み: Walter Roberson
2019 年 7 月 30 日

  6 件のコメント

Near the upper right of your command window, click on Add-Ons . In the menu that pops up, click on Get Add-Ons . A new window will come up. In the upper right corner in the area marked "Search for add-ons" type in interactive pdf and press return. The top entry that will show up will be Export figure to 3D interactige PDF by Ioannis Filippidis . Click on the title of that to get to a window about that contribution specifically. In the upper right corner, there will be a button Add from GitHub . Click on that. You might be required to sign in to your Mathworks account. You will then be shown a warning message, "By selecting OK, you acknowledge" and so on. Click OK. A few seconds later it will finish installing.
After that you can plot something, and then give the command
fig2u3d
... I am detecting some problems with it in practice however.
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?
[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.

サインイン to comment.



Translated by