matlab 6.5/7.0——simulink模型无法保存及其兼容性问题

MATLAB 6.5的mdl文件在7.0中无法打开,提示编码不支持。问题源于模型中的非ASCII字符,特别是中文。解决方案包括在工作空间运行特定命令设置编码为'windows-1252'或'ISO-8859-1',或更改模型内部的中文为英文。此外,建议使用英文进行命名和注释,以避免类似问题。在MATLAB 7.0中,使用中文注释保存模型时,需设置'SavedCharacterEncoding'为'ISO-8859-1'。
摘要由CSDN通过智能技术生成

mdl文件在6.5里面做的,但是到了7.0里面却打不开,下面就是相关信息:

Warning: Unable to load model file ‘d:MATLAB7work*.mdl’. Run “bdclose all; set_param(0, ‘CharacterEncoding’, Enc)” where Enc is one of windows-1252, ISO-8859-1, then load the model. The first character that is not supported in the current character encoding setting (‘ibm-1386_P100-2002’) occurs on line 1795, byte offset 21. To correctly load models with non-ASCII characters, you must explicitly use the character encoding that was used to save the file. Type “help slCharacterEncoding” for more information on setting character encoding and to learn more about which encodings are commonly found on your platform.
或者是直接保存出现如下信息:

Error while saving model 'untitled’using the character encoding setting 'ibm…

问题产生原因:模型中含有不能识别的字符,比如中文等等,尤其是matlab对中文的支持不是很好(不知道是不是D版的原因)。解决的办法:

(1)在工作空间中输入下列命令,然后打开

bdclose all;

根据引用和引用中的信息,以下是关于Matlab 7.0Simulink的使用教程的一些建议: 1. 安装Matlab时,要使用英文或数字作为用户名和单位,避免使用中文。 2. 在自己封装的模块和模型中的注释中,使用英文。 3. 文件存放路径也要使用英文。 另外,根据引用中的建议,如果你在安装Matlab 7.0后发现系统进程中有一个Matlab Server.exe占用了大量内存,你可以通过将其在服务管理工具中的启动类型从“自动”改为“禁止”来解决。 关于Simulink模型兼容性问题,引用提到了Matlab 6.57.0之间的兼容问题,但没有提供具体的解决方法。所以如果你在使用Matlab 7.0Simulink时遇到了兼容性问题,建议参考官方文档或论坛上的相关讨论来解决。 希望这些信息对你有所帮助。如果你还有其他关于Matlab 7.0Simulink使用的问题,请随时提问。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [【博客搬家】【转】matlab 6.57.0simulink模型的兼容问题](https://blog.csdn.net/weixin_30381317/article/details/97131192)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *3* [MATLAB 7.0安装??License Manager Error-9~唉](https://blog.csdn.net/weixin_42121725/article/details/116123751)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值