uitable with latex or greek letters
Mostra commenti meno recenti
I am working in App Designer,
i want to create a table with 2 collumns where first collumn is a parameter name, something like "$\gamma^a_b$"
and second collumn would be numeric and editable.
It seems like neither UITable or UIStyle have latex interpreter,
i have seen answers from 2016 with unicode characters and html tags, but either i'm doing something wrong or they do not work anymore.
app.AllParamTable = uitable(app.AllParamPanel);
app.AllParamTable.ColumnName = {'Parameter'; 'Value'};
app.AllParamTable.ColumnEditable = [false true];
parDisp={'\alpha_1','V^G_C'};
params={'alpha1','VGC'};
for i=1:numel(params)
app.AllParamTable.Data{i,1}=parDisp{i};
app.AllParamTable.Data{i,2}=app.p.Param.(params); %app.p.Param is a struct, and will always return numeric.
end
Risposta accettata
Più risposte (2)
Sean de Wolski
il 9 Ago 2021
0 voti
You could use a uihtml component with an embedded table. Of course this table will not be interactive, but if it's for display only then it would work.
Amanda Irving
il 12 Ott 2023
0 voti
Starting in R2022a, Interpreter is supported in uistyle:
https://www.mathworks.com/help/matlab/ref/uistyle.html
1 Commento
Assaf
il 16 Lug 2024
Hi,
I still didn't manage to use it for column names, do anyone has solution for it?
Thanks
Categorie
Scopri di più su Develop Apps Programmatically in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!