problem in giving variable name to table for export
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi all,
I have a cell array matrix which is: result1 =
'piezometer/depth[cm]' [ 5] [ 10] [ 30] [ 50] [ 100]
'F2(RT[Sec])' [7020] [13740] [37620] [55740] [ 77520]
'F3(RT[Sec])' [1440] [ 2820] [ 7800] [11460] [ 15420]
'F5(RT[Sec])' [6300] [12600] [37980] [63600] [128580]
How is possible to consider the first row and column as header and then export them as txt or dat file like a table?
After this step I want to have plot some thing like the picture that I attached here (I prepared this plot using excel).
Hope to hear your answers. Thanks
0 comentarios
Respuestas (1)
Walter Roberson
el 26 de Oct. de 2015
cell2table( result1(:,2:end).', 'VariableNames', result1(:,1) )
1 comentario
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!