Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MATLAB在MATLAB图形用户界面中使用unicode字符_Matlab_Unicode - Fatal编程技术网

MATLAB在MATLAB图形用户界面中使用unicode字符

MATLAB在MATLAB图形用户界面中使用unicode字符,matlab,unicode,Matlab,Unicode,我想在MATLAB指南的列表框中使用泰米尔语单词(泰米尔语是一种印度语言),而不是默认的英语单词。如何做到这一点?我认为MATLAB列表框不能显示Unicode。但是,您可以在GUI中使用Java列表框来显示Unicode: f = figure; txt = char(hex2dec('0B85'),hex2dec('0B86'),hex2dec('0B87')); b = javax.swing.JList({'hello','hello2',txt}); c = javacomponent

我想在MATLAB指南的列表框中使用泰米尔语单词(泰米尔语是一种印度语言),而不是默认的英语单词。如何做到这一点?

我认为MATLAB列表框不能显示Unicode。但是,您可以在GUI中使用Java列表框来显示Unicode:

f = figure;
txt = char(hex2dec('0B85'),hex2dec('0B86'),hex2dec('0B87'));
b = javax.swing.JList({'hello','hello2',txt});
c = javacomponent(b,[20,20,500,100],f);
fn = java.awt.Font('Arial Unicode MS',0,10);
set(b,'font',fn)
变量
txt
包含一些在Unicode上的Wikipedia页面上找到的泰米尔字符-如果它说了任何粗鲁的话,我深表歉意:)

命令
javacomponent
没有文档记录,可能会随着版本的变化而变化,因此如果您的应用程序很重要,请不要依赖它。您还需要一种Unicode字体-我使用了Arial Unicode MS,但如果您不在Windows上,则需要另一种字体


最后,如果您使用的是
javacomponent
,我建议您不要使用GUI开发指南,因为它将变得难以管理。

我认为MATLAB列表框无法显示Unicode。但是,您可以在GUI中使用Java列表框来显示Unicode:

f = figure;
txt = char(hex2dec('0B85'),hex2dec('0B86'),hex2dec('0B87'));
b = javax.swing.JList({'hello','hello2',txt});
c = javacomponent(b,[20,20,500,100],f);
fn = java.awt.Font('Arial Unicode MS',0,10);
set(b,'font',fn)
变量
txt
包含一些在Unicode上的Wikipedia页面上找到的泰米尔字符-如果它说了任何粗鲁的话,我深表歉意:)

命令
javacomponent
没有文档记录,可能会随着版本的变化而变化,因此如果您的应用程序很重要,请不要依赖它。您还需要一种Unicode字体-我使用了Arial Unicode MS,但如果您不在Windows上,则需要另一种字体


最后,如果您使用的是
javacomponent
,我建议您不要使用GUI开发指南-这将变得很难管理。

它需要您迄今为止尝试过的更多细节来给出所需的答案。它需要您迄今为止尝试过的更多细节来给出所需的答案。