声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2179|回复: 6

[综合讨论] 急问:仿真模型打不开怎么办

[复制链接]
发表于 2007-6-14 18:02 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
打开一个模型时,matlab窗口显示如下命令:
Warning: Unable to load model file 'd:\MATLAB7\work\model1.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 922, byte offset 15. 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.
> In general\private\openmdl at 13
  In open at 130
  In uiopen at 151
请问怎么样才能打开
回复
分享到:

使用道具 举报

发表于 2007-6-14 20:46 | 显示全部楼层

回复 #1 paulchang 的帖子

看一下matlab版本一样吗,在就是看看模型在当前目录下了吗

评分

1

查看全部评分

发表于 2007-6-14 21:24 | 显示全部楼层
是不是版本不一样
试试先打开matlab,然后打开模型
发表于 2007-6-15 18:00 | 显示全部楼层
Run "bdclose all; set_param(0, 'CharacterEncoding', Enc)" where Enc is one of windows-1252, ISO-8859-1, then load the model.
这个提示不已经告诉你了么?

在matlab空间输入bdclose all; Enc='windows-1252';set_param(0, 'CharacterEncoding', Enc)
不行就把'windows-1252'换成‘ISO-8859-1’
发表于 2007-6-15 21:24 | 显示全部楼层
试看看,先把它放到WORK下面,打开MATLAB后再打开源文件
发表于 2007-6-16 00:12 | 显示全部楼层
4楼说的对,首先要看懂给出的警告信息.不知道的就help一下,楼主如果用记事本打开那个模型文件看看就知道了,很可能在相应的行出现了中文字符.:@)

评分

1

查看全部评分

发表于 2007-6-18 10:58 | 显示全部楼层
原帖由 yizi0000 于 2007-6-16 00:12 发表
4楼说的对,首先要看懂给出的警告信息.不知道的就help一下,楼主如果用记事本打开那个模型文件看看就知道了,很可能在相应的行出现了中文字符.:@)

一:可能是中文字符
二:更大可能是版本问题,要知道matlab版本兼容很差,不过一般上面的指令都可以
如果想在7.0下保存成中文也可以,也需要输出另外的指令。
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-16 06:42 , Processed in 0.068577 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表