File Exchange

image thumbnail


version (3.66 KB) by Qun HAN
Add a splash screen to your GUI


Updated 08 May 2009

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This function utilize the JAVA interface of MATLAB to add a splash screen to your GUI programs. To use splash.m, just call it in your GUI as you call most MATLAB in-line functions. You can control of the duration time and the image to be displayed.

Cite As

Qun HAN (2020). splash.m(revised) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (20)

Yiwu Kuang

very nice

Ryu Hoshi


I am not able to use it in my GUI. can anyone help me out of this?


fantastic script! thank you.

It causes Matlab r2012a to freeze up and crash


Nice job! Looks fancy

It is really useful,
Thanks for sharing.....



To Jveer:

The image is displayed on a JWindow. There is no means to make a JWindow transparent as far as I know. May be the future version of JAVA will add this function.


please add support for transparency

Durga Shrestha

It crashes MATLAB R2008a.

ma ma

john baldwinson

Is there an English version of latest version?

John Simeral

Very nice. You can also raise the splash window to the top (foreground) by adding win.toFront after the command.


Please visit for the latest version.

Tom Crocker

Easily modified to return a handle to the created screen so you can destroy it yourself once your GUI has finished loading (rather than having to guess)

charles lehalle

only needs a way to write text on the top of the image (for the version number for instance)

John Bush

Good example!I have also seen the 'Splash Screen' Anony Mous mentioned. I think that is a 'Splash Window' not a 'Splash Screen'!

Anony Mous

'Splash Screen' already does that. It also fits the duration of its visibility to the time it takes to load the program. See:


Using the revised version you can control the duration time of the splash according to your program's need, the initialization time, for example.

The revised version can fit the duration of its visibility to the time it takes to load the program.

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

Inspired: Machine Vision System - Color Recognition