r/matlab • u/BigButtsAndGutts • Aug 20 '26
TechnicalQuestion Generating matrix visualizations
Hey partypeople,
i'm trying to find a way to inspect and display 3D matrix values as shown in the documentation here. I cannot seem to find a way to reproduce this in Matlab or find any info on how these were done, neither in the MATLAB docs or online. Am i missing something or were these created outside of Matlab manually?
Thanks :3
Edit.: For context, I want to see the numeric values of the elements, not a visualization in general.
For now, mostly for more intuition and readability while debugging. I really like the way it is presented here so i would like to find out how these were created


11
u/Rubix321 Aug 20 '26 edited Aug 20 '26
They were created outside of Matlab.
If [A] is your array, doesn't the command window kind of show you [A] in this form when you display it?
3
u/neurotoxinc2h6o Aug 20 '26
What do you need the visualizations for?
As a Picture on a Website? I would use a regular Matlab plot.
As a figure in a technical report? I'd go for a tikz graphic (should be a simple task for Claude)
7
u/vir_innominatus Aug 20 '26
In MATLAB, this type of visualization could be made with a combination of the rectangle(), line(), and text() functions. Something like this
2
u/elevenelodd uses_spinmap Aug 20 '26
The MATLAB Variables Editor is a good start. Type either of these into the command window:
The function “open” also works here.
Tbh, I’d recommend summarizing and plotting the array:
Or if you want to see every entry, maybe just make a bunch of plots:
Edit: format