I am getting a error code while opening a .mdl file

25 views (last 30 days)
I am getting a error message while opening a .mdl file which says:
XYX.mdl not a valid simulink model file name and to check save_system documentation.
  1 Comment
Walter Roberson
Walter Roberson on 14 Jul 2021
.mdl files should be text files. This is different from .slx files, which are not text files (not directly.)
If you open the .mdl file with your favourite text editor, what does the first few lines look like?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 15 Jul 2021
Model names must be valid MATLAB identifiers. You cannot have a dash (minus sign) as part of a model name. Rename it to myFOC_1_3.mdl
Varun Nair
Varun Nair on 16 Jul 2021
Hi Walter,
I can share the init_params just for your reference.

Sign in to comment.

More Answers (1)

Varun Nair
Varun Nair on 15 Jul 2021
Hi Walter, thanks for responding.
I shall attach the error code for your reference.


Find more on Dependency Analysis in Help Center and File Exchange



Community Treasure Hunt

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

Start Hunting!

Translated by