matlab notebook用不了

来源:百度知道 编辑:UC知道 时间:2024/05/01 05:26:21
我想在我的word中加入matlab中的notebook。在matlab中运行结果如下:
>> notebook -setup

Welcome to the utility for setting up the MATLAB Notebook
for interfacing MATLAB to Microsoft Word

Choose your version of Microsoft Word:
[1] Microsoft Word 97
[2] Microsoft Word 2000
[3] Microsoft Word 2002 (XP)
[4] Exit, making no changes

Microsoft Word Version: 3

Notebook setup is complete.

结果当我新建notebook文件并运行matlab指令时,提示:"Error in connecting to MATLAB:对象变量或with块变量未设置"

我用的word 2003和matlab 7.0
哪位大哥帮忙解答一下,感激不尽!

完成上述工作后
直接在命令窗口输入命令:
>>notebook
生成空白文档
打开word,在 文件-新建,在新建窗口中选择“本机上的模板”
这时会弹出“模板”对话框,选择 m-book.dot,这时在菜单栏增加"notebook"项,在word中输入matlab语句-选中-在Notebook 选中evaluate cell,这时在word中就会出现结果!

希望能解决你的问题!

我用的也是word 2003和matlab 7.0,咱两个界面不一样啊,我的比你多个选项,但是你的版本不一致,也能安装成功,我就奇怪了
还是升级matlab吧

我选择4就可以直接用了
notebook -setup

Welcome to the utility for setting up the MATLAB Notebook
for interfacing MATLAB to Microsoft Word

ChooseyourversionofMicrosoftWord:
[1]Microsoft Word 97
[2]Microsoft Word2000
[3]Microsoft Word 2002(XP)
[41Microsoft Word2003(XP)
[5]Exit,making no changes
MicrosoftWordVersion:4

Notebook setup is complete.

如果选择3,会提示不成功
notebook -setup

Welcome to the utility for setting up the MATLAB Notebook
for interfacing MATLAB to Microsoft Word

ChooseyourversionofMicrosoftWord:
[1]Micro