matlab仿真中出现下面问题时为什么啊?File "D:\Program Files\MATLAB\project\untitled.mdl" contains characters which are incompatible with the current character encoding,GBK.To avoidthis error,do one of the following:1) Use the slCharacterE

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/04 21:45:26
matlab仿真中出现下面问题时为什么啊?File

matlab仿真中出现下面问题时为什么啊?File "D:\Program Files\MATLAB\project\untitled.mdl" contains characters which are incompatible with the current character encoding,GBK.To avoidthis error,do one of the following:1) Use the slCharacterE
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?

matlab仿真中出现下面问题时为什么啊?File "D:\Program Files\MATLAB\project\untitled.mdl" contains characters which are incompatible with the current character encoding,GBK.To avoidthis error,do one of the following:1) Use the slCharacterE

编码的问题.试一试在打开模型之前运行:

bdclose all; set_param(0,'characterencoding','windows-1252');

可能的原因:

1、模型以前是在6.x版本下做的,里面含有中文字符;

2、以前的系统用户名不是中文的,现在是中文.