creating a word doc from Matlab - very slow when using large tables!

2 Ansichten (letzte 30 Tage)
tombola
tombola am 29 Feb. 2012
Hi, I'm creating and populating a word document in the manner described here:
The document isn't the most complicated ever, but has a huge number of tables and pictures within the text.
Everything works well - the document is created perfectly - but when I have large tables the document takes a very long time to create. Even when word is invisible.
My table writing code is horribly iterative - looping through the rows and columns of an array and writing the values using
MATLAB code
set(selection, 'Text', char(valueText));
selection.MoveRight(12, 1);
Is there any faster way to do this please? Not only do I need to set the table text but also each cell's text and background colors depending on their value.
Thanks for any help,
Tom.

Antworten (0)

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by