![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291373/image.png)
Uitable rowname with special characters - inputdlg
14 ビュー (過去 30 日間)
古いコメントを表示
Victoria Viridiana Cabrera Díaz
2020 年 5 月 8 日
コメント済み: Victoria Viridiana Cabrera Díaz
2020 年 5 月 12 日
I'm trying to write a code that includes Δ in several parts, but I haven't been able to actually put it anywhere.
I need it for my inputdlg and as a row name for my uitable, I'm not even sure I can use delta in these.
I've already tried '\Delta' and the HTML trick, also the char() thing and nothing seems to work, probably I'm not using it correctly
promptd={'¿Necesitas los valores de \Delta U, \DeltaH, \DeltaS, Q y W? Sí=1 No=0'};
dlgtitled='¿Procedemos?';
V=inputdlg(promptd,dlgtitled);
My input code looks like that, as you can see I tried \Delta, but it just displays it literally. I understand I need some interpretor or LaTeX (?
VarNames={'\Delta U'; '\Delta H'; '\Delta S'; 'Q'; 'W'};
Proc={'1-2','2-3','3-4','4-1','Ciclo'};
Also tried it here, also not working
f=figure;
TT=uitable(f,'Data',[dU,dH,dS,Q,W],'columnname',VarNames,'rowname',Proc,'Position',[62 174 443 112]);
And this is the uitable
Thanks
0 件のコメント
採用された回答
Mehmed Saad
2020 年 5 月 8 日
編集済み: Mehmed Saad
2020 年 5 月 8 日
You can use html
VarNames={'<html>Δ U</html>'; '<html>ΔH</html>'; '<html>Δ S</html>'; 'Q'; 'W'};
Proc={'1-2','2-3','3-4','4-1','Ciclo'};
f=figure;
TT=uitable(f,'Data',[dU,dH,dS,Q,W],'columnname',VarNames,'rowname',Proc,'Position',[62 174 443 112]);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291373/image.png)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!