Borrar filtros
Borrar filtros

Is it possible to rename the CELL header

16 visualizaciones (últimos 30 días)
balandong
balandong el 26 de Jul. de 2017
Comentada: balandong el 26 de Jul. de 2017
Dear Coder, I have do search on the net, however I cannot find any reference whether we can change the CELL Header into something like newName instead of the default number.
Really appreciate for any feedback.
  2 comentarios
Stephen23
Stephen23 el 26 de Jul. de 2017
What is "the CELL Header" ?
I searched the MATLAB documentation for "cell header" but did not get any results that obviously relate to your question.
Guillaume
Guillaume el 26 de Jul. de 2017
You may need to provide more information about what is a CELL Header. Which product is this relevant to?
Matlab has a cell array data type. This has no header.
thisisacellarray = {[1 2 3 4], 'aabbcc'; datetime, 1i+5}

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de Jul. de 2017
I suspect you might be talking about the column numbers in the variable browser, asking if the numbers can be replaced with words.
If I am correct, then No, you cannot do that directly.
However, you might be able to use array2table() to create a table() object. You can then do things like
t.Properties.VariableNames(1:3) = {'year','month','day'};
Now when you openvar('t') then the variable names will be shown at the top of each column
  1 comentario
balandong
balandong el 26 de Jul. de 2017
Hi Walter, Yes, you understand my question correctly. Just wonder why MATLAB does not allow modification of the column number into words. Seem I need to change my code now to address this problem. However, another problem arise due to this changes. It is ok, I will make new thread for the new problem Thanks Walter

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by