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!