## LaTeX forum ⇒ Math & Science ⇒ 3d matrix in latex

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
tonie
Posts: 9
Joined: Sat Jan 26, 2008 1:18 pm

### 3d matrix in latex

Hi folks,
I am working with 3D matrices. Basically, most of my calculations are shown in indice-notation. In order to illustrate and visualize my calculations I would like to draw a 3D matrix. Do you have a clue how to generate it in latex? I know how to do a 2d matrix but I would like to modify it to a 3rd dimension (kind of a 3D plot)... Right now, I couldn't find any help and examples on the web...

Tags:

localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
You could try the pst-gr3d package. The manual shows some useful examples.

Best regards
Thorsten
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

tonie
Posts: 9
Joined: Sat Jan 26, 2008 1:18 pm
cheers, the package is very useful!
Best wishes,
Tonie

maziyarkhorrami
Posts: 1
Joined: Tue May 13, 2014 7:34 pm
Can anyone tell me how this could be possible to use this package ? I use ubuntu 14.04 and Texmaker. It is not my first latex experiment. I found pst-gr3d.sty in internet and put in the directory where I have my main tex file but when I compile it I get nor error not any 3d matrix (just a white invisible space). As an alternative I read the documentation in the page :

http://ctan.org/pkg/pst-gr3d

As they said "* Run "tex" on pst-gr3d.ins and copy pst-gr3d.tex and pst-gr3d.sty
in one of your TeX input directories" . I tried to run pst-gr3d.ins and I got some error. It seems really wired. Is there anyone can help me. I really need to draw some 3D Matrices. Or maybe a new package ?

Is there any other package which I need to use in my tex file ?

These are the errors when I tray to run pst-gr3d.ins :

`This is TeX, Version 3.1415926 (TeX Live 2013/Debian)(/home/mazy/Documents/Latex/Masterthesis_Mazy/pst-gr3d.ins(/usr/share/texlive/texmf-dist/tex/latex/base/docstrip.texUtility: `docstrip' 2.5d <2005/07/29>English documentation    <1999/03/31> *********************************************************** This program converts documented macro-files into fast ** loadable files by stripping off (nearly) all comments! *********************************************************** ********************************************************* No Configuration file found, using default settings. ********************************************************* ! *************************************************** Could not find your \batchfile=pst-gr3d.ins.**************************************************.\processbatchFile ...****************************}                                                   \fi \else \ifDefault \Msg ... \process@first@batchfile ->\processbatchFile                                               \ifnum \NumberOfFiles =\z@ \int...l.1092 \process@first@batchfile ?  ***************************************************** First type the extension of your input file(s):  *\infileext=ins**************************************************** ***************************************************** Now type the extension of your output file(s)  : *\outfileext=sty**************************************************** ***************************************************** Now type the name(s) of option(s) to include   : *\Options=tex**************************************************** ***************************************************** Finally give the list of input file(s) without   ** extension seperated by commas if necessary     : *\filelist=pst-gr3d,ins****************************************************  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your input file `pst-gr3d.ins' was not found !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your input file `ins.ins' was not found !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`
Last edited by cgnieder on Tue Jun 17, 2014 12:12 pm, edited 1 time in total.