SIMULINK中,自己用MATLAB Function编写模块,如何初始化变量?。
Show older comments
现在,自己用MATLAB Fcn编写一个Simulink模块,内部如何使得变量初始化?例如,如果直接写h=1,经过一系列的运算,若h为n,第二个采样周期将使用现在的h=n。但是在第二个采样周期,h依然初始化为1,请问如何解决?@孙忠潇老师。
Accepted Answer
More Answers (0)
Categories
Find more on Modulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!