Opening a simulink file that has an extension .MDL

12 次查看(过去 30 天)
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

回答(1 个)

Steven Lord
Steven Lord 2019-10-15
Can you open it if you change the extension from .MDL (all caps) to .mdl (all lower-case)?
  2 个评论
mokhtar shouran
mokhtar shouran 2019-10-16
编辑:mokhtar shouran 2019-10-16
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
Steven Lord 2019-10-16
编辑:Steven Lord 2019-10-16
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 String 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by