Save To Excel in different columns

Hello ,
Thanks in advance. Working with 2016b.
i have an array for eg, A = [1, 2, 3 ,4;
6,7,8,4];
i need to save this array to four different columns like the first column of A, in this case (1 and 6) to column J in excel , (2 and 7) to column S in excel.etc
Any help would be appreciated

Respuestas (1)

KSSV
KSSV el 4 de Mayo de 2021
writetable(A,'test.xlsx')

2 comentarios

EmirBeg
EmirBeg el 4 de Mayo de 2021
Should use writematrix instead i think. Writetable doesn't write matrices of type double.
Nikhil Baby
Nikhil Baby el 4 de Mayo de 2021
But how do i write it to specific columns in excel

Iniciar sesión para comentar.

Productos

Preguntada:

el 4 de Mayo de 2021

Comentada:

el 4 de Mayo de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by