For visual notifications in Matlab, I would like to create notification pop-ups or even balloons. This FileExchange contribution creates the balloons with Java, but unfortunately it is buggy.

I think the way to go is to call a batch-file with system(). There is a closely related question but the answers are not feasible on my machine (PowerShell is disabled) or not allowed on FileExchange (Notifu binaries).

Is it possible to visually notify users from Matlab with pop-ups in Windows without PowerShell or external binaries?

A rather ugly approach, calling a batch and using the command window:

// popup.bat
ECHO Hello World
timeout /t 2
EXIT

Calling it with the /MIN command just shows the icon in the taskbar, which may be a little bit uninspiring

% popup.bat in search path
fullname = which('popup.bat');
system(['start ' fullname]); 

Maybe it is possible to ECHO a string from Matlab, Change the windows size, position,... Or use dialog(), or a completely different approach? Probably even platform independent?

0

There are 0 answers