MATLAB的notebook无法运行手动点开notebook,会出现error connecting to matlab:对象变量或WITH块变量未设

>> notebook -setup

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

Setup complete
>> notebook
??? Error using ==> actxserver at 91
Server creation failed. Invalid ProgID 'matlab.application'

Error in ==> notebook>startMatlabAutomationServer at 240
hAppMatlab = actxserver('matlab.application');

Error in ==> notebook at 34
startMatlabAutomationServer;

第1个回答  2013-05-28
你们用的是Win7吧,设置步骤如下:
1:设置以管理员身份运行Matlab
2:在“CMD”下面打开Matlab 根目录(里面有个maltab.exe),例如“D:\Program Files\MATLAB\R2013a\bin”,然后输入指令 “matlab -regserver”
第2个回答  2012-06-04
Try this:
In MATLAB, type 'matlabroot' to determine where MATLAB is installed
Close MATLAB
In a DOS window, cd to the place where you installed matlab, and then cd
to its 'bin' directory e.g.
c:
cd "\Program Files\matlab"
cd bin
Enter command to register MATLAB as a COM server:
matlab -regserver
Restart MATLAB and try notebook
就是在doc下进入你安装matlab的文件下得bin文件,然后输入matlab -regserver
第3个回答  2011-04-24
Word安装没?版本是多少?notebook是Word的一个模板,所以需要有Word;
如果安装了Word还是不能启动,尝试打开Word后操作:
文件>>新建>>我的模板>>选择“m-book.dot”>>确定