matrix2WordTable
Versión 1.0.0 (3,87 KB) por
Eduard Clotet
This function is a macro to copy a matrix into a Microsoft Word table
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 (2025). 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 LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |