Creating and Writing in an MDL file

62 ビュー (過去 30 日間)
Isha Pathak
Isha Pathak 2020 年 9 月 6 日
回答済み: Amrtanshu Raj 2020 年 9 月 10 日
I need to create and write in a .mdl file, but I don't know how. I created an mdl file by using the command open_system(new_system) and saving the pop-up as a .mdl file, but I don't know how to modify and write in the .mdl file. Every time I click on it it just opens the simulink pop-up, which doesn't give me any options for writing code. Where do I actually write the code into the mdl file?
  1 件のコメント
stozaki
stozaki 2020 年 9 月 6 日
Hello Isha,
Do you want to open and edit the .mdl file as text format?
Does simulink pop-up mean opening Simulink Editor (Canvas)?
stozaki

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

回答 (1 件)

Amrtanshu Raj
Amrtanshu Raj 2020 年 9 月 10 日
Hi,
A .mdl file is used to store models in Simulink using ASCII and not code, Code is stored using a .m file.
You can refer to this
If you wish to view the ASCII of a .mdl file you can open it using
>> edit('name_of_file.mdl');

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by