mcDISPLAY-MATLAB(1)
π mcDISPLAY-MATLAB π
okay bestie, welcome to the mcdisplay-matlab page β this is the mcDISPLAY-MATLAB(1) manual and we're gonna get through it together, no cap β¨
β¨ NAME β¨
mcdisplay-matlab β mcstas Graphical display of simulations using Matlab/Octave π¦
πΈ SYNOPSIS πΈ
mcdisplay-matlab [-hom] [-png|-jpg|-fig|-eps|-pdf|-tif] [βinspect=COMP]
INSTR name=value...
π DESCRIPTION π
so the mcdisplay-matlab front-end is a graphical debugging tool. it's literally giving schematic drawing of the instrument definition β showing you where the components are positioned and the paths the simulated neutrons take through the instrument. which means it's super useful for debugging a simulation, like spotting components that ended up in the wrong position, or finding out where neutrons are getting lost. π₯
to use the mcdisplay-matlab front-end with a simulation, run it like this:
mcdisplay INSTR args...
where INSTR is the name of either the instrument source INSTR.instr or the simulation program INSTR.out generated with mcstas, and args are the normal command line arguments for the simulation, just like for mcrun. the -h option will list valid options. π
the default plotting backend is mxdisplay-pyqtgraph, but there's a whole squad of additional plotters out there, like mxdisplay-matplotlib, mxdisplay-webgl-classic (using WebGL), mxdisplay-webgl (using WebGL and NodeJS), and mxdisplay-matlab (using Matlab or Octave). this one right here is the Matlab/Octave plotting tool. π
π OPTIONS π
INSTRβ displays the given mcstas 3D model with its defaults/current parameters πname1=value1 ...β displays the given mcstas model with given parameters β¨-n N,βncount Nβ number of particles to simulate[-png|-jpg|-fig|-eps|-pdf|-tif]β same as above, and specifies an output file format to generate. possible save_as are-png-pdf-fig-tif-jpg-epsπΌοΈβinspect=COMPβ same as above, and only plot component names that matchCOMP, given as a single component word for partial match, such asMonitor; a component interval such asMonok:Sample; or2:10or2:endπ-mβ explicitely request to use Matlab-oβ explicitely request to use Octave
π¦ FILES π¦
/usr/share/mcstas/tools/matlab/usr/share/mcstas/tools/Python/mccodelib/mccode_config.json~/.mcstas/mccode_config.jsonhttp://www.mcstas.org
πΈ EXAMPLES πΈ
display the Test_SX example (Single crystal diffraction)
mcdisplay-matlab Test_SX.instr -n 1e2 TTH=13.4
π AUTHORS π
mcstas Team (mcstas.org)
β SEE ALSO β
mcstas(1), mcdoc(1), mc(1), mcrun(1), mcgui(1), mcdisplay(1)
π AUTHORS π
MCSTAS neutron Ray Tracing Team.
okay that's the whole page bestie, you ate that π and yeah β this version is from git, and it's dated the same as the footer said. slay, go debug something pretty. π«Άπβ¨
π¦ where this page comes from
- debian trixie: mcstas-mcdisplay-matlab 3.5+3.5.19+ds5-2 Β· GPL-3.0-only
- ubuntu questing: mcstas-mcdisplay-matlab 3.5+3.5.19+ds5-2
- ubuntu resolute: mcstas-mcdisplay-matlab 3.5+3.5.19+ds5-2build1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms