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

如图是某方程组的一个方程,其中的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 ExchangePHY Components についてさらに検索

タグ

質問済み:

2022 年 11 月 30 日

回答済み:

2022 年 11 月 30 日

Community Treasure Hunt

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

Start Hunting!