MATLAB: Factory properties can only be queried, not set, error

factory-defined property;

for example I want to change factoryUicontrolFontSize with this command;
set(groot,'factoryUicontrolFontSize',10)
When I execute above command, I got;
Error using set Factory properties can only be queried, not set.

Best Answer

You can't change the factory settings -- they are set at the "factory" (here at MathWorks.)
You can set the DEFAULT settings instead -- change the 'factory' part of your command to 'default' instead. Note that this will only change future uicontrols; it will have no effect on uicontrols that already exist, even if you didn't give them a different FontSize (and so they were using the default from when they were created.)