converting matlab code into simulink
이전 댓글 표시
how to use the final conditions of filters as initial conditions in discrete FIR filter in simulink?
I make blocks and then take lpc coeffiecient so I will have different initial condition each time, how can I put them in simulink, I implement it on command window and it works correctly but in simulink there is a problem with continuity, can somebody help, plz?
답변 (1개)
Jon Boerner
2014년 10월 20일
0 개 추천
In the mask for the Discrete FIR Filter in Simulink, there is an option to specify the initial states:

You can use this option to set the initial states to start at nonzero values. Is this what you are looking for?
댓글 수: 4
abdulqader
2014년 10월 20일
편집: abdulqader
2014년 10월 20일
abdulqader
2014년 10월 20일
Jon Boerner
2014년 10월 21일
For the Discrete FIR Filter block I had used, you can use:
>> set_param(gcb, 'InitialStates', ['xFinal0'])
Note that InitialStates is plural, and that the LoadInitialState parameter does not need to be set.
Also, it is worth noting that for the analogous IIR block, you can have the states as an input to the block, as well as an input to reset the block to new initial states:

abdulqader
2014년 10월 29일
카테고리
도움말 센터 및 File Exchange에서 Digital Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!