变量初参数的设置,且该参数在仿真中随时间变化。

如图是某方程组的一个方程,其中的P3可以给定一个初值,随着仿真的运行,该值可以通过其他方程迭代出新的值,即P3需要随着仿真的运行不断更新。请问怎么样搭建这样一个模块呢?P3是以什么形式给初值?常数模块吗?还需要其他模块配合吗?

 采纳的回答

dowihi
dowihi 2022-11-30

0 个投票

data store memory, data store read, data store write三个模块。
memory的初始值设置为0, 根据方程更新后使用write写进去, 读取的时候使用read读取。
参考helper文档查看怎么使用。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 PHY Components 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!