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?
古いコメントを表示
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.
jahanzaib ahmad
2019 年 7 月 26 日
3D pdf .or once i converted the 3D to autocad using https://uk.mathworks.com/matlabcentral/fileexchange/33884-dxflib
回答 (2 件)
Maadhav Akula
2019 年 7 月 29 日
0 投票
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!
Walter Roberson
2019 年 7 月 29 日
編集済み: Walter Roberson
2019 年 7 月 30 日
0 投票
9 件のコメント
Megha
2019 年 7 月 30 日
Walter Roberson
2019 年 7 月 30 日
That's odd. Neither mesh_to_latex nor save_idtf exist in the File Exchange contribution that I linked to.
There are comments in the code that some routines were based on save_idtf or mesh_to_latex, both by Alexandre Gramfort, but those are only comments.
Megha
2019 年 7 月 30 日
Walter Roberson
2019 年 7 月 30 日
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.
Megha
2019 年 7 月 30 日
Walter Roberson
2019 年 7 月 30 日
[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.
Luca Vacca
2020 年 11 月 23 日
Dear Dr. Walter Roberson, did you succeed in fixing all problems in fig2u3d (or other similar functions)?
Mukund
2020 年 12 月 25 日
It's really an important aspect of file conversion. Request to mathworks team to provide inbuilt solution for ease of using Matlab.
Walter Roberson
2020 年 12 月 25 日
Unfortunately I have forgotten now what problem I was encountering.
カテゴリ
ヘルプ センター および File Exchange で Graphics Object Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!