insertin string variables to headers
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
Hi all,
I have the matrix A which is A=
Columns 1 through 7
    'l12'    'l13'    'l14'    'l15'    'l23'
 and i want to apply something like
header={ 'time' A }; xlswrite('filename.xlsx', header) but it does not work as when i open the excel file i see as header only 'time' and not the elements of A.
0 comentarios
Respuesta aceptada
  Jessica Lam
      
 el 23 de Mayo de 2012
        hope it helps .....
output=cell(1,length(A));
output(1,1)=cellstr('time' );
output(1,2:length(A)+1)=num2cell(A);
xlswrite('filename.xlsx', output);
Más respuestas (0)
Ver también
Categorías
				Más información sobre Variables 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!