필터 지우기
필터 지우기

writetable change "Row" in cell A1

조회 수: 4 (최근 30일)
David
David 2015년 4월 7일
편집: Leon 2024년 2월 15일
I'm familiar with the writetable function to save a table as an Excel file. I regularly use the WriteRowNames option to include the row names in the file. However, when Matlab writes the file it always write "Row" as the title of the series above the row names in cell A1 of the Excel file. Is there any way to change this label?

채택된 답변

Peter Perkins
Peter Perkins 2015년 4월 8일
David, you can set the dimension names property, such as
data.Properties.DimensionNames{1} = 'SomethingOtherThanRow';
Hope this helps.
  댓글 수: 1
Leon
Leon 2024년 2월 15일
편집: Leon 2024년 2월 15일
Very helpful! One minor correction: I found I needed to use brackets rather than curly braces:
my_table.Properties.DimensionNames(1) = "SomethingOtherThanRow";

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by