Interpreter Latex for uitreenode with uistyle not working

조회 수: 10 (최근 30일)
Veronica Taurino
Veronica Taurino 2022년 5월 12일
답변: Veronica Taurino 2022년 5월 12일
I am trying to reproduce the following example from the documentation page of uistyle:
fig = uifigure("Position",[500 500 300 350]);
tr = uitree(fig,"Position",[10 10 200 250]);
n1 = uitreenode(tr,Text="Circles");
n2 = uitreenode(tr,Text="Rose Curves");
n11 = uitreenode(n1,Text="$$r=a\cos(\theta)$$");
n12 = uitreenode(n1,Text="$$r=a\sin(\theta)$$");
n21 = uitreenode(n2,Text="$$r=a\cos(n\theta)$$");
n22 = uitreenode(n2,Text="$$r=a\sin(n\theta)$$");
expand(tr)
s = uistyle("Interpreter","latex");
addStyle(tr,s,"level",2);
But I get:
Unrecognized property 'Interpreter' for class 'matlab.ui.style.Style'.
What did I do wrong? I have Matab 2021b.
I need to customize the node-name in a Tree on the App designer. I need something like: "Mesh 1: object_one"

채택된 답변

Veronica Taurino
Veronica Taurino 2022년 5월 12일
Solved. I just upgraded to Matlab 2022a

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by