![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1677706/image.png)
Excel headers with symbols
2 ビュー (過去 30 日間)
古いコメントを表示
Birsen Ayaz-Maierhafer
2024 年 4 月 23 日
回答済み: Walter Roberson
2024 年 4 月 23 日
Hello
I want to create headers for the excel sheet with symbols
% Create headers for the excel file using the following lines
Tag='Cr';
List =24050;
C={[Tag,'_',num2str(List),' (ppm)'], 'k\infty', '\sigma(k\infty)', '\beta', '\sigma(\beta)'};
And I got
Cr (ppm) k\infty \sigma(k\infty) \beta \sigma(\beta)
I tried several parantheses styles, combinations and could not resolve. Help is appreciated.
Thank you
0 件のコメント
採用された回答
Walter Roberson
2024 年 4 月 23 日
You have to either code the symbols as character constants or else code the unicode to create the symbols.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1677706/image.png)
C = [Tag + "_" + List, "k∞", "σ(k∞)", "β", "σ(β)"];
or
C = [Tag + "_" + List, "k"+char(0x221e), char(0x3c3)+"("+char(0x221e)+")", char(0x3b2), char(0x3c3)+"("+char(0x3b2)+")"]
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!