No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Fullscreen 1.1

4.6 | 10 ratings Rate this file 15 Downloads (last 30 days) File Size: 1.39 KB File ID: #23404 Version: 1.0

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 (17)
19 May 2016 go9kata

14 Jun 2015 Edward Kelley

Excellent work! It would be very helpful if Mathworks would make something like this a permanent part of their distributed libraries. Remarkable job! I especially value the accurate 1:1 pixel representation from image to screen.

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

Juan (view profile)

15 Jun 2014 Wen

Wen (view profile)

17 Sep 2013 Vyas A

Vyas A (view profile)

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!

Comment only
11 Jul 2013 Alex

Alex (view profile)

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 !

Comment only
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

Roger (view profile)

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!

Comment only
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

Zoltan (view profile)

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

Comment only
11 Nov 2011 Zoltan

Zoltan (view profile)

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?

Comment only
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 :-)

Comment only
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?

Comment only
05 Aug 2010 Andrew King

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

Contact us