Please change your current directory to a writable directory preferably outside of MATLAB installati

simulink  使用自带函数fuction

用这个自定义函数编写了程序,运行时出现这个错误,但是在别人的电脑上面运行正常,求高人指点

 


Error using ==> construct_error at 109
The current directory is d:\program files\matlab\r2011a\bin, which is reserved for MATLAB files.

Please change your current directory to a writable directory preferably outside of MATLAB installation area.
The current directory is d:\program files\matlab\r2011a\bin, which is reserved for MATLAB files.

Please change your current directory to a writable directory preferably outside of MATLAB installation area.

 

解决了,是路径设置不对,在file--set path 点开后,add folder添加一个program file--MATLAB以外的路劲(最好不是中文路径,此步可以省略,直接进行下一步),将MATLAB主界面的current folder路径改成一个program file--MATLAB以外的路径,并将已经建立好的.mdl文件复制到current folder路径的文件夹下,再从该路径打开.mdl文件就ok了

 

主要在mtlab 按照路径外, 新建一个文件夹,然后在matlab中添加路径 ,然后将建好的模型放进文件中,再从matlab 中打开,就可以了

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值