Filter löschen
Filter löschen

writetable change "Row" in cell A1

4 Ansichten (letzte 30 Tage)
David
David am 7 Apr. 2015
Bearbeitet: Leon am 15 Feb. 2024
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?

Akzeptierte Antwort

Peter Perkins
Peter Perkins am 8 Apr. 2015
David, you can set the dimension names property, such as
data.Properties.DimensionNames{1} = 'SomethingOtherThanRow';
Hope this helps.
  1 Kommentar
Leon
Leon am 15 Feb. 2024
Bearbeitet: Leon am 15 Feb. 2024
Very helpful! One minor correction: I found I needed to use brackets rather than curly braces:
my_table.Properties.DimensionNames(1) = "SomethingOtherThanRow";

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by