現在この提出コンテンツをフォロー中です。
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます
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.
引用
Eduard Clotet (2026). matrix2WordTable (https://jp.mathworks.com/matlabcentral/fileexchange/136100-matrix2wordtable), MATLAB Central File Exchange. に取得済み.
| バージョン | 公開済み | リリース ノート | Action |
|---|---|---|---|
| 1.0.0 |
