Cell to Table Conversion Problem

3 visualizaciones (últimos 30 días)
Fahad Parvez Mahdi
Fahad Parvez Mahdi el 10 de Dic. de 2018
Comentada: Fahad Parvez Mahdi el 10 de Dic. de 2018
I wanted to convert a matlab cell array to matlab table in order to run my program accordingly. But, when I code and run it, certain columns (3 out of 32) are coming splitting. Please check the attached image.
  2 comentarios
madhan ravi
madhan ravi el 10 de Dic. de 2018
please upload your data as .mat file and your code to run
Fahad Parvez Mahdi
Fahad Parvez Mahdi el 10 de Dic. de 2018
Editada: Fahad Parvez Mahdi el 10 de Dic. de 2018
Please find the code below and .mat file attached with this comment.
The code:
data1 = cell2table(main,'VariableNames',{'imageFilename' 'T1' 'T10' 'T11' 'T12' 'T13' 'T14' 'T15' 'T16' 'T17' 'T18' 'T19' 'T2' 'T20' 'T21' 'T22' 'T23' 'T24' 'T25' 'T26' 'T27' 'T28' 'T29' 'T3' 'T30' 'T31' 'T32' 'T4' 'T5' 'T6' 'T7' 'T8' 'T9'});

Iniciar sesión para comentar.

Respuestas (1)

madhan ravi
madhan ravi el 10 de Dic. de 2018
load conversioncell2table
data1 = cell2table(main,'VariableNames',{'imageFilename' 'T1' 'T10' 'T11' 'T12' 'T13' 'T14' 'T15' 'T16' 'T17' 'T18' 'T19' 'T2' 'T20' 'T21' 'T22' 'T23' 'T24' 'T25' 'T26' 'T27' 'T28' 'T29' 'T3' 'T30' 'T31' 'T32' 'T4' 'T5' 'T6' 'T7' 'T8' 'T9'});
  1 comentario
Fahad Parvez Mahdi
Fahad Parvez Mahdi el 10 de Dic. de 2018
I have tried. Still, the cloumn 20, 30 and 32 are coming in splitting cells.

Iniciar sesión para comentar.

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by