matrix2WordTable

This function is a macro to copy a matrix into a Microsoft Word table
23 descargas
Actualizado 3 oct 2023

Ver licencia

Copy the content of a Matlab matrix to a table in a Word document using the Windows clipboard.
Export matrix into Word Table
1) Run the matrix2WordTable function.
2) Place the cursor at the position where you want the table to be created inside the Word document.
3) Wait for the table to be created and filled automatically.
If values are not being copied properly, increase the CopyPause time.
Ex: matrix2WordTable(M, 'CopyPause', 0.7);
Examples:
- Example 1: Create and fill a Word table
1) Execute in a Matlab terminal:
matrix2WordTable(rand(3,3));
2) Navigate to the Word document and place the cursor where the table must be created.
3) After 5 seconds (by default) the values will start to get copied to the table.
- Example 2: Fill the values of an already existing Word Table
1) Create a table in the Word document.
MS Word menu bar -> insert -> table (select 6x4 size)
2) Execute in a Matlab terminal:
matrix2WordTable(rand(4,6), 'CreateSpace', 0);
3) Navigate to the Word document and select the top-left cell of the table.
4) After 5 seconds (by default) the values will start to get copied to the table.
- Example 3: Create and fill a Word table with numbers containing four decimal places:
1) Execute in a Matlab terminal:
matrix2WordTable(rand(3,3),'Format','%.4f');
2) Navigate to the Word document and place the cursor where the table must be created.
3) After 5 seconds (by default) the values will start to get copied to the table.

Citar como

Eduard Clotet (2024). matrix2WordTable (https://www.mathworks.com/matlabcentral/fileexchange/136100-matrix2wordtable), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2016b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0