how can i print output from table to word or excel?

first of all thank u for your time and sorry for asking too many questions....for example i have this table ...is it possible to export this table to word or excel so that i dont have to write them one by one and this table is really big...i know there is a function for this i tried that but nothing happend
T1=table(v',i',tv',ti',Z',tz','VariableNames',{'V','I','thetav','thetai','Z','thetaz'});

 Respuesta aceptada

Hi arian,
You want to write the table data to excel or word-->
You can use below command to write the table data into excel
writetable(tableName, location , 'Sheet', 1);
'tableName' is the name of the table
'location' is where you wanted to save the excel sheet....suppose your excel sheet file name is 'excelData' and you wanted to save on desktop then location should be -->
location = 'Desktop/excelData';
I hope it helps

5 comentarios

i did what u said but didnt work and got error for sheet....>>>>invalid parameter name
can you please send what actualy you did ?
arian hoseini
arian hoseini el 25 de Jun. de 2022
Editada: arian hoseini el 25 de Jun. de 2022
writetable(T1, 'Desktop/myData.xls' , 'Sheet', 1);
should i create a excel file with myData name first?
write full location of the file for e,g
location = 'C:\Users\karan\Desktop\myData.xls'
that will work
thank u sir

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2016b

Etiquetas

Preguntada:

el 25 de Jun. de 2022

Comentada:

el 25 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by