gpt4 book ai didi

matlab - 是否可以在 MATLAB 绘图标签中显示 unicode?

转载 作者:太空宇宙 更新时间:2023-11-03 19:14:38 24 4
gpt4 key购买 nike

我想调用类似的东西

xlabel( 'Time (μs)' );  

但这只是在情节中出现了一个问号。无论如何要显示 unicode 吗?

最佳答案

对于您的具体示例,您可以使用 TeX\LaTeX 格式获得所需的显示:

xlabel('Time ({\mu}s)');

对于显示 Unicode 字符的更一般情况,如果您知道 the code for your character您可以使用函数 char 将代码的十进制值转换为字符和 build a string像这样:

xlabel(['Time (' char(181) 's)']);  % Same results as above

关于matlab - 是否可以在 MATLAB 绘图标签中显示 unicode?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5651238/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com