Prev: Ssc_build - unknown function
Next: help with plotting
From: Sven Körner on 28 Apr 2010 08:16 "Dirk " <dirkschneider_NOSPAM_(a)gmx.de> wrote in message <fjdtrg$3b0$1(a)fred.mathworks.com>... > > Anyone else more successful? > > > > Fred > > I found a very interesting solution for exporting 3D-Plots. > Look at this webpage and download "Saveobjmesh.m" > http://www.nada.kth.se/~asa/Ray/matlabobj.html > > Try to build a 3D plot and save this plot to 'parab.obj'. > [u,v]=meshgrid(-6:0.5:6,-6:0.5:6); > x=u; y=v; z=u.^2+v.^2; > mesh(x,y,z) > saveobjmesh('parab.obj',x,y,z) > > Now you are able to import this obj file to Adobe Acrobat 3D > Toolkit (30 days demo available). You can save this file as > an U3D file, name it "matlabplot.u3d". > > Go to your favourite latex editor. > Create a file named "views.vws" containing only one line: > > [frontview]{-0.000000193670558701 -0.000000028775016148 > 36}{0.7103724479675293 0.7032560706138611 > -0.0283149853348732}{140.5486495578774}{42.73490890549407}{} > > Now create a new latex file and copy and paste these lines: > > \documentclass[a4paper]{article} > \usepackage[3D]{movie15} > \begin{document} > \section*{my first 3d plot from matlab in \LaTeX} > \includemovie[autoplay, toolbar, > label=3dplot,3Dviews=views.vws]{.5\linewidth}{.5\linewidth}{matlabplot.u3d} > > \\ > \movieref[3Dgetview]{3dplot}{Get View!} > \end{document} > > If you want to add another view of your plot, zoom and > rotate to the view and click on the "Get view!" text. Copy > this line into the "views.vws" files. The first line ist the > starting view. > > Only works with new versions of Adobe Acrobat Reader. In > Foxit and other alternative PDF viewer don't display a 3D > object. > > > Dirk for U3d see: http://www.mathworks.com/matlabcentral/fileexchange/27245-generate-vertices-faces-and-color-for-u3d-format or (other possible export): http://www.mathworks.com/matlabcentral/fileexchange/27333-create-3d-interactive-html-file-from-matlab-surface
|
Pages: 1 Prev: Ssc_build - unknown function Next: help with plotting |