when using listdlg is it possible to use tex characters in the ListString?

4 次查看(过去 30 天)
This is what i am trying to do :
(I would like ''\sigma_x'' to turn into σx )
listdlg('ListString' , {'Von Mises Stress', '\sigma_x' , '\sigma_y'})
But the result i get is:

回答(2 个)

Stephen23
Stephen23 2021-12-31
编辑:Stephen23 2021-12-31
With recent MATLAB versions and OSs you can just use σ:
listdlg('ListString' , {'Von Mises Stress', 'σ_x' , 'σ_y'})
E.g. R2018a:

Walter Roberson
Walter Roberson 2021-12-31
listdlg('ListString' , {'Von Mises Stress', '<HTML>&sigma;<sub>x</sub>' , '<HTML>&sigma;<sub>y</sub>'})

类别

Help CenterFile Exchange 中查找有关 Stress and Strain 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by