作业帮 > 综合 > 作业

matlab仿真中出现下面问题时为什么啊?

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/04/27 21:50:50
matlab仿真中出现下面问题时为什么啊?
File "D:\Program Files\MATLAB\project\untitled.mdl" contains characters which are incompatible with the current character encoding,GBK.To avoid
this error,do one of the following:
1) Use the slCharacterEncoding function to change the current character encoding to one of:windows-1252,ISO-8859-1.
2) Remove the unsupported characters.The first unsupported character is at line 28,byte offset 15
这个文件以前是仿真过没有问题的,现在打开后保存时会出现这样的问题.拿到是因为我是win8?
编码的问题.试一试在打开模型之前运行:bdclose all; set_param(0,'characterencoding','windows-1252');可能的原因:1、模型以前是在6.x版本下做的,里面含有中文字符;2、以前的系统用户名不是中文的,现在是中文.