How to copy content of of 7*14 matrix file(*.mat) to a table on Microsoft Word??
Mostrar comentarios más antiguos
How to copy content of of 7*14 matrix file(*.mat) to a table on Microsoft Word??
Respuestas (2)
Image Analyst
el 30 de Jun. de 2015
0 votos
If you're using Windows, you have to use ActiveX to have MATLAB directly control Word. I'm attaching a program to use it with Excel, but you can search the forum to see if anyone has used it with Word.
5 comentarios
Nisreen Sulayman
el 30 de Jun. de 2015
Brendan Hamm
el 30 de Jun. de 2015
The format commands only change how MATLAB is displaying the values to your MATLAB command window, however they are still stored in memory as double precision. You can convert them to char arrays with the rounding performed and place these into a Word Cell.
a = 0.943636363636364;
num2str(a,'%0.2f')
ans =
0.94
Nisreen Sulayman
el 1 de Jul. de 2015
Editada: Nisreen Sulayman
el 1 de Jul. de 2015
Nisreen Sulayman
el 3 de Jul. de 2015
Image Analyst
el 3 de Jul. de 2015
Appear where? If you used format bank and just left off the semicolon, the number should echo to the command window with only two numbers to the right of the decimal point. What did you do (apparently it wasn't this)?
Thorsten
el 3 de Jul. de 2015
0 votos
1 comentario
Nisreen Sulayman
el 3 de Jul. de 2015
Categorías
Más información sobre ActiveX en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!