File Exchange

image thumbnail


version (509 Bytes) by Stephan Wegerich
formatted matrix display


Updated 25 Oct 2001

No License

Editor's Note: This file was a File Exchange Pick of the Week

prints to the screen a nice easy to read print out of the input matrix that can be copied and pasted into other applications (e.g. Excel).

Cite As

Stephan Wegerich (2021). printmatrix (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

Ajay Singholi

Great and Useful. Thanks

Khairy Elsayed


just what i was looking for, thanks.

B. Roossien

This function is quite slow for large matrices, because the command window starts to scroll horizontally for every line.

A suggestion: make it possible to store the output directly into a text file. This makes it much faster and saves the "copy-paste" procedure if you want to use it into another program

James J. Cai

Brian Katz

Very handy. Saves a lot of fprintf hassles to get into XLS etc. Though, it would be nice if it could handle more input types (cell text arrays and what not). Well done.

Anthony Tonzy

Fantastic, and i find it very useful particularly in my field of research. Thanks and keep up the great work~!!!

Brian Mearns

Good. I was a little confused at first, as I couldn't see the difference. Silly me, I should have taken your advice and pasted into Excel! Alas! There's the difference.
Very nice.

Fahad Al Mahmood

Very simple but useful function ... ! :)

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!