GUI / Static text box with a subscript

조회 수: 14 (최근 30일)
HSukas
HSukas 2017년 8월 28일
답변: Walter Roberson 2017년 8월 28일
Hi
I have a gui project and i want to write a static text box with a subscript. (s_1).
I have foud a code like this :
set(handles.text355, 'style', 'pushbutton', 'enable', 'off', 'string', '<HTML>S<sub>1')
It works.
But static text turns to push button. I could't change it.
What should i write instead of 'pushbutton'? I tried to write text,statictext,tex. None of them worked.
Could you help me?

채택된 답변

Walter Roberson
Walter Roberson 2017년 8월 28일
This is not possible with a uicontrol style text or edit.
You could experiment with using the Unicode character for subscript 1, but that will definitely not work for R2014a or earlier.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by