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

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

 Accepted Answer

dowihi
dowihi on 30 Nov 2022

0 votes

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

More Answers (0)

Tags

Asked:

on 30 Nov 2022

Answered:

on 30 Nov 2022

Community Treasure Hunt

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

Start Hunting!