File Exchange

image thumbnail

Display a text file

version (1.91 KB) by Samuel Cheng
Display a text file in a popupmenu.


Updated 11 Mar 2012

View License

Display a text file in a popupmenu

Usuage: popupmessage(filename,window_name)

E.g., popupmessage('popupmessage.m','popupmessage.m');

Cite As

Samuel Cheng (2020). Display a text file (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

The function works but displays text in a single line. How to display multiple lines of the text in a box?

Neal Tesney

Thanks! This is great. I've been waiting for years for Mathworks to come up with a separate scrolling window to send text to, but this is just as good.

James J. Cai

It will be better if I can copy and paste... anyway, thanks a lot.

Adel cadeem

what do u mean by name of window and name of file. i dont get it at alll.. i pasted the command into the mfile editor and it doesn work. help me

Ayal Anis

Cool thing!
Will use.


Remove a bug that opening empty file would lead to error.

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

Inspired: ChessPeace