Saving text and data to an excel file

1 visualización (últimos 30 días)
Jenny
Jenny el 16 de En. de 2014
Respondida: Friedrich el 16 de En. de 2014
If I have the following text and data:
a = {'N', 'NE', 'E'};
b=[1 2 3];
How to I save the text and data as a 2 x 3 matrix to an excel file?
N E S
1 2 3

Respuesta aceptada

Friedrich
Friedrich el 16 de En. de 2014
Hi,
try
xlswrite('out.xlsx',[a;num2cell(b)])

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by