MATLAB: Questions on changing font size in errordlg pop-up box OR changing font color in sprintf to be displayed in editbox in matlab GUI

errordlg font sizeguidesprintf font color

Hi everyone,
I am new in matlab, and currently doing a project to create a matlab gui using GUIDE.
I have been trying to display an error message either using "sprintf" to display on editbox OR "errordlg" pop-up box (as an alternative way to display the error). I am able to display the error message on either editbox or errordlg. However, I can't change the font color to red using sprintf. So, I tried "errordlg" pop-up box, it works too, but the font size is too small. And I don't know how to change it either. I have looked around and found some things on cprintf (unfortunately, it displays on command window instead of the gui), and tweaking 'msgbox' stock function to no luck based on the following recommendation I found :
Does anyone know or have any recommendation to solve this?
Thanks for your help.

Best Answer

You can use GUIDE to make a custom dialog box where you can pass in the string, the font size and color, etc.