1.9K Downloads
Updated
29 Mar 2005
No License
Show the contents of a matrix in a nicely formatted way with headers.
USAGE: dispmtx(M,fmt,colsize,[colhead{:}],[rowread{:}])
Example: dispmtx(randn(3,2),'%.2f',7,{'c1' 'c2'},{'r1' 'r2' 'r3'})
Warning: not fast...
Aslak Grinsted apr2004
EXAMPLE:
>> dispmtx(randn(3,2),'%.2f',7,{'c1' 'c2'},{'r1' 'r2' 'r3'})
c1 c2
r1 1.19 0.17
r2 -0.04 -0.19
r3 0.33 0.73
>>
Cite As
Aslak Grinsted (2026). dispmtx (https://uk.mathworks.com/matlabcentral/fileexchange/5729-dispmtx), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Tables >
Find more on Tables in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Made fmt and colsize optional arguments. |
