creating a .mdl file.

9 次查看(过去 30 天)
Rajan
Rajan 2011-12-21
回答: Michael 2014-3-31
What is the command used to create a .mdl(Simulink model) file.?

回答(2 个)

Kaustubha Govind
Kaustubha Govind 2011-12-21
Either:
>> open_system(new_system))
Or:
>> simulink
File->New->Model

Michael
Michael 2014-3-31
open_system only opens a current existing system. If you want to create one from scratch:
>> new_system('test') >> if ismac() >> save_system('test3','test3.slx') %for mac use extension .slx, windows use .mdl >> end; >> if ispc() >> save_system('test3','test3.mdl') >> end;
This should work.

类别

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

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by