原帖由 cwhu 于 2007-1-4 17:29 发表
那么在matlab中如何调用vba程序或者宏命令呢?
matlab中不能用,而是在word中用。
我说的过程也不是完全自动的,至少需要一次手动,呵呵
matlab是产生一大堆emf图形文件,然后再word里用vba插入图形文件。
要不你看看M-notebook能否解决你的问题,在 matlab中运行word。
Desktop Tools and Development Environment
Notebook for Publishing to Word
Notebook allows you to access the numeric computation and visualization software of MATLAB from within the word processing environment, Microsoft Word. Using Notebook, you can create a document, called an M-book, that contains text, MATLAB commands, and the output from MATLAB commands.
You can think of an M-book as a record of an interactive MATLAB session annotated with text, or as a document embedded with live MATLAB commands and output. Notebook is useful for creating electronic or printed records of MATLAB sessions, class notes, textbooks or technical reports. This section introduces basic Notebook capabilities: Creating or Opening an M-Book Entering MATLAB Commands in an M-Book Protecting the Integrity of Your Workspace in M-Books Ensuring Data Consistency in M-Books
Note Notebook is available only on Windows systems that have Microsoft Word installed. For supported versions of Word, see Configuring Notebook.
Modifying Published Output Via Preferences Creating or Opening an M-Book
© 1994-2006 The MathWorks, Inc. • Terms of Use • Patents •
[ 本帖最后由 心灯 于 2007-1-4 18:43 编辑 ] |