AS TO model reference on Version 2017A

27 次查看(过去 30 天)
ED
ED 2024-11-18,7:31
回答: Sreeram 2024-11-20,7:03
I learned that the latest version of matlab supports model reference which I think means the subsystem used in a file can be stored into the eponymous file.
I tried to do the same way the official web shows which is based on the latest version using Subsystem Block tab which is absent in the 2017A.
I just wonder whether 2017A can make it or from which version on it supports the method?

回答(1 个)

Sreeram
Sreeram 2024-11-20,7:03
Hi @ED,
I assume that you want to know how to perform model referencing in MATLAB R2017a, and in which version was subsystem referencing introduced.
You may use the “Model” block to include a model as a block in another model in MATLAB R2017a. The “Model” block displays input and output ports corresponding to the top-level input and output ports of the included model, called the referenced model. You may refer to the relevant documentation by running the following command in the MATLAB Command Window:
web(fullfile(docroot, 'simulink/slref/model.html'))
If the modelling requirement in your use case is to reduce file contention and merge issues, you might want to consider using a subsystem reference. However, subsystem reference is not available in MATLAB R2017a. It was introduced in MATLAB R2019b. Here is the link to the MathWorks blog post introducing the subsystem reference:
You may refer to the flow chart to help you decide which type of model component suits your use case well here:
I hope it helps!

类别

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

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by