필터 지우기
필터 지우기

Excel headers with symbols

조회 수: 2 (최근 30일)
Birsen Ayaz-Maierhafer
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

채택된 답변

Walter Roberson
Walter Roberson 2024년 4월 23일
You have to either code the symbols as character constants or else code the unicode to create the symbols.
C = [Tag + "_" + List, "k∞", "σ(k∞)", "β", "σ(β)"];
or
C = [Tag + "_" + List, "k"+char(0x221e), char(0x3c3)+"("+char(0x221e)+")", char(0x3b2), char(0x3c3)+"("+char(0x3b2)+")"]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by