I have got difficulties to get custom warning messages to pop up in MATLAB's console.
I start execution of the main script. At some point it calls a function that is coded in a seperate .m file. From this called function I would like to display a warning. It executes the line where the warning is called but nothing shows up in the console. How do I make this warning to show up? Thanks in advance for your help!
Main script which is run:
fd = 'test.h5'
Script for function foo():
warning('''%s'' already exists. Overwriting it.',fd);
Btw: When I put a fprintf() or disp() or error() instead of the warning() it will show up in the console.