Inport in Simulink Doesn't Hold Last Value
이전 댓글 표시
I am running a model, and I have set 'LoadExternalInput' to 'on' for the simulation. I set my top-level inport's 'Interpolate' option to 'off'. My respective input signal is a constant, so I have it saved as a structure with time, so time is 0, and my signals.values is 1 (or whatever it needs to be, but is nonzero). I notice that for the first time sample, the value is indeed what is expected, but after that goes to zero. Is there anyway to set it so that it hold the last value instead of returning to 0? I'm running 2010a.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!