MATLAB Answers


Opening a simulink file that has an extension .MDL

mokhtar shouran さんによって質問されました 2019 年 10 月 15 日 18:27
最新アクティビティ Steven Lord
さんによって 編集されました 2019 年 10 月 16 日 13:37
Hi guys
i have a simulink file that has an extention .MDL "in capital", this file cannot be opened; it says "the file is invalid because it does not have the extention ".mdl or slx"". I was wondering if any of you has cfaced similar problem
i am using matlab 2019b

  0 件のコメント

サインイン to comment.





1 件の回答

Steven Lord
回答者: Steven Lord
2019 年 10 月 15 日 19:08

Can you open it if you change the extension from .MDL (all caps) to .mdl (all lower-case)?

  2 件のコメント

mokhtar shouran 2019 年 10 月 16 日 10:51
Thanks for your response
As the file cannot be opened, i can not chage its extension.
If you know a way that allowa me to change the extension of the file, kindly write it down please
Steven Lord
2019 年 10 月 16 日 13:36
You can use the movefile function in MATLAB to rename the file, including its extension. Though if you're on Windows, you might want to copyfile it to a file with the correct case for the extension in tempdir first, since Windows and filenames that differ only by case don't play well together, if I remember correctly.

サインイン to comment.

Translated by