No BSD License  

Highlights from
Fullscreen 1.1


4.5 | 8 ratings Rate this file 31 Downloads (last 30 days) File Size: 1.39 KB File ID: #23404

Fullscreen 1.1



Display fullscreen images on multiple displays (updated)

| Watch this File

File Information

The package contains an m file for displaying fullscreen matlab images. The user can specify the display number for the image to be shown. This is a cross platform solution using Java function built into Matlab 7.x and has been tested on Windows and Linux machines.


Fullscreen inspired this file.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (15)
24 Oct 2014 Pacho Hybsky

Nice script, working very good, but when I display the image on second screen and then click for example on Matlab command window, the image disappear. Is there any way to keep the image displayed even I'm working in another window?

09 Oct 2014 Juan  
15 Jun 2014 Wen  
17 Sep 2013 Vyas A

Used it successfully to address a second monitor. However, when I try to simultaneously use a camera object in Matlab to grab images using the matlab function 'getsnapshot(obj1)', this code seems to fail to keep the figure active on the second screen. Am I making some mistake here? Does someone know how the camera can grab images while the second monitor is actively addressed with the full-screen figure on the second monitor? Help highly appreciated. Thanks in advance!

11 Jul 2013 Alex

Works great, but is it possible to use uint16 images for more levels? 0 to 255 is not enough for my application...

18 Jan 2013 Julien Armijo

OK it could work now with several external screens : just need to give different names to the global variables (frame_java, etc.)... Thanks again for this useful function !

17 Jan 2013 Julien Armijo

Very useful file, however I do have a problem, I need to send an image to two external screens (besides the main computer screen), and when I manage to display one then the other cannot be displaying at the same time. By the way I had to use closescreen() right after the first use of fullscreen(im, scr_number), otherwise it did not work. Is there any way to modify fullscreen.m to address two external screens at the same time ? Actually I managed to do it but using 2 matlab sessions, one for each additional screen... Thanks in advance for any help.

13 Jun 2012 Qiaoen Luo

A very good function. I am wondering how to add the re-size and re-position in this one or simply let the full screen display whatever has been changed in the original figure(display the re-sized).

01 Jun 2012 Roger

Thanks for sharing these useful functions!

I have one more question. When I display one image in the second monitor with function "fullscreen", I would like to do something else in the first monitor. It seems that the image would stop showing once I do something else. Is there any way that I can keep showing the image in second monitor at the same time? Thanks!

19 Apr 2012 migri tasku

Thank you for your submission, but it doesn't seem to function the same on all systems.

I am using R2010a on OS X 10.6.8.

My use case is two monitors where I would like to have the fullscreen image shown only on one monitor. Currently 'fullscreen' shows the image on both monitors, leaving no way out but to quit Matlab. This happens regardless of whether I use monitor '1' or '2'.

I have read through all the comments and I haven't found a fix for displaying the image on only one monitor. I guess if the desktop would still be visible after launching 'fullscreen', one could use 'closescreen' to get out of the fullscreen mode.

Thank you!

11 Nov 2011 Zoltan

I found the solution: under Linux it is important to have the second screen activated at the moment MATLAB starts. ( )

11 Nov 2011 Zoltan

Very nice, but I have a problem.
It can't display the fullscreen image under Linux 2.6.24 and X.Org X Server 1.6.4 on the second screen. Is there any solution?

17 Oct 2011 Alejandro Camara Iglesias

In Windows 7 with Matlab 2010b, the JFrame set to fullscreen via setFullScreenWindow(myjframe) iconifies when it looses the focus.

To prevent this behavior you can set the location of the frame via setLocation (as it is being done right now) and also set the dimensions of the frame to the screen resolution via setSize(bounds.height, bounds.width).

You would only need to change the line:



frame_java.setSize( bounds.height, bounds.width );

I hope it helps :-)

19 Jan 2011 Christopher Kanan

It works well in Windows 7; however, I shared my code with an OSX user and it apparently only displays a black screen instead of an image. Any suggestions?

05 Aug 2010 Andrew King

seems to work well, could be nicely improved with scaling abilities.

Contact us