SIMULINK中,自己用MATLAB Function编写模块,如何初始化变量?。
古いコメントを表示
现在,自己用MATLAB Fcn编写一个Simulink模块,内部如何使得变量初始化?例如,如果直接写h=1,经过一系列的运算,若h为n,第二个采样周期将使用现在的h=n。但是在第二个采样周期,h依然初始化为1,请问如何解决?@孙忠潇老师。
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Modulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!