Displaying data in a printable matlab table

1 visualización (últimos 30 días)
Chuzymatics Chuzymatics
Chuzymatics Chuzymatics el 22 de Jul. de 2014
Comentada: Joseph Cheng el 22 de Jul. de 2014
In the code below, I want to be able to display the t versus x values(usual table of values in algebra) in a printable table
t=0:30:360; x =0.5*sind(t) clf plot(t, x, '-sk', 'LineWidth', 2) table=[t',x'] The last line/command gives me a border-less table whose data mixed up/merged when exported to a word document. Please how may one create a printable matlab table containing data?

Respuestas (1)

Joseph Cheng
Joseph Cheng el 22 de Jul. de 2014
Use dlmwrite() to write the table data to a textfile or xlswrite() into excel.
  2 comentarios
Chuzymatics Chuzymatics
Chuzymatics Chuzymatics el 22 de Jul. de 2014
Not clear enough
Joseph Cheng
Joseph Cheng el 22 de Jul. de 2014
Check the documentation for dlmwrite() function using "doc dlmwrite" and it can print it to a deliminated file for import. or use xlswrite() function to write to an excel file for copy+paste into word. No Builtin functions to display in bordered table for insertion into word. There are files on the fileexchange but you should search for them.
There are more complicated ways using activeX controls. Look online for better tutorials on how to control WORD with MATLAB.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by