Opening a simulink file that has an extension .MDL
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Steven Lord
il 15 Ott 2019
Can you open it if you change the extension from .MDL (all caps) to .mdl (all lower-case)?
2 Commenti
Steven Lord
il 16 Ott 2019
Modificato: Steven Lord
il 16 Ott 2019
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.
Vedere anche
Categorie
Scopri di più su String in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!