フィルターのクリア

I have a problem when I open the simulink file.

35 ビュー (過去 30 日間)
Jang Hyung-Joon
Jang Hyung-Joon 2011 年 5 月 19 日
回答済み: srikanth nagalla 2018 年 7 月 8 日
When I open the simulink file, I have a problem.
When I open the simulink file, I see next message.
Error using ==> open at 162. File "D:\....\...\simulation.mdl' contains characters which are incompatible with the current character encoding, windows-949. To avoid this error, do one of the following: 1) Use the sICharacterEncoding 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 21.
I want to solve this problem.
So, I reinstalled MATLAB. But,problem is not solved. And, I searched about this from internet. In internet, I saw that somebody recommend to type some sentences in command window. That sentences is ==> slCharacterEncoding('ISO-8859-1') or slCharacterEncoding('Windows-1252')
When I typed this sentences, the message is Error using ==> open at 99 File 'D:\....\...\simulation.mdl"not found.
So, This problem was not solved.
And, From some site, I saw some sentences. That is When saving the model, the system may print the following error:
??? File "C:\\Simulink\\mts.mdl" contains characters which are incompatible with the current character encoding, windows-1251. To avoid this error, do one of the following: 1) Use the slCharacterEncoding function to change the current character encoding to one of: Shift_JIS, windows-1252, ISO-8859-1. 2) Remove the unsupported characters. The first unsupported character is at line 23, byte offset 15.
To eliminate this, you simply need to close all of the models' windows, and change the encoding by using the following commands:
bdclose all set_param(0, 'CharacterEncoding', 'windows-1252');
I also type the bdclose all.... But, My problem was not solved.
So,Anyone can help me? I want to smoebody help!
When sombody know the solution, Please send the email to me or response this question in here. (My emaail address : jhj2531@gmail.com)

採用された回答

Arnaud Miege
Arnaud Miege 2011 年 5 月 19 日
That's not very clear, but it seems that you need to change the character encoding. Have a look at the following pages from the documentation:
HTH,
Arnaud
  2 件のコメント
Jang Hyung-Joon
Jang Hyung-Joon 2011 年 5 月 24 日
Thank you.
Now, I can open the flie which was not opened in the past.
But, I have a problem about save.
After applying slCharacterEncoding('Windows-1252'), I can open the file. But, When I save the simulnk file, next message is appear.
Error saving "D:\...\...\...\untitled.mdl"; invalid argument
Cannot overwite read-only files or write to read-only storage.
So, In this time, How can I solve this problem?
Please, Help me.
Arnaud Miege
Arnaud Miege 2011 年 5 月 24 日
Is the file read-only? Do you have write permission to that directory? This is likely to be a Windows problem, not a MATLAB one. Change the file/folder properties and it should work.

サインインしてコメントする。

その他の回答 (3 件)

MOHAMED HALITH
MOHAMED HALITH 2015 年 7 月 8 日
Type the below command in command window ***** currentCharacterEncoding = slCharacterEncoding() =====> MATLAB answered as ... currentCharacterEncoding = "windows-1251" or "windows-1251" or whatever character encoded *****
Then you have to change for needed characterencoding as by making command ***** slCharacterEncoding('shift_JIS') ***** And oncemore to confirm encoding is changed or not by ***** ***** currentCharacterEncoding = slCharacterEncoding() =====> MATLAB answered as ... currentCharacterEncoding = "shift_JIS" *****

srikanth nagalla
srikanth nagalla 2018 年 7 月 8 日
what is error using ==> open at 158 in matlab simlink window

srikanth nagalla
srikanth nagalla 2018 年 7 月 8 日
what is error using ==> open at 158 in matlab simlink window ?

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by