Borrar filtros
Borrar filtros

print array in an excel file and in two separate columns

3 visualizaciones (últimos 30 días)
Hoque
Hoque el 24 de Sept. de 2018
Comentada: Bish Erbas el 24 de Sept. de 2018
How can I print this array in an excel file and in two separate columns?
n =
813 4
428 6
314 3
740 5
579 4

Respuestas (1)

Bish Erbas
Bish Erbas el 24 de Sept. de 2018
Try:
xlswrite('test.xlsx',n)
  2 comentarios
Hoque
Hoque el 24 de Sept. de 2018
Actually, I tried this but doesn't work. I get following error msg:
Warning: Unable to write to Excel format, attempting to write file to csv format. To write to an Excel file, convert your data to a table and use writetable.
Bish Erbas
Bish Erbas el 24 de Sept. de 2018
My answer assumes n is a workspace variable. Make sure you see n as a numerical matrix in the workspace.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by