How can I rotate a UIlabel in appdesigner?

How can I rotate a UIlabel in appdesigner? So instead of me reading it horizontally, it is displayed vertically>

Answers (1)

there is no any rotation property for UILabel but you can do this
lbl=uilabel(app.GridLayout4);
lbl.Layout.Row=9;
lbl.Layout.Column=2;
text="Vertical comment";
newstring=split(text,'');
lbl.Text=newstring;
lbl.HorizontalAlignment='center';

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Release

R2017a

Asked:

on 9 Aug 2018

Answered:

on 5 Mar 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!