MATLAB: How to center the label within the application

appcenterlabel;MATLAB

I have a label in my App Designer application and the text is center aligned within the label. I would also like the label to be centered within my application. How do I do this?

Best Answer

Stretch the label horizontally so it is as wide as the app (i.e. right and left aligned with the app).
This makes it such that the title is always as wide as the app, and is therefore centered because the label has HorizontalAlignment set to 'center'