RC 필터에 대한 MATLAB Lsim 초기 값이 작동하지 않음 (MATLAB Lsim initial value for RC filter doesnt work)


문제 설명

RC 필터에 대한 MATLAB Lsim 초기 값이 작동하지 않음 (MATLAB Lsim initial value for RC filter doesnt work)

초기 값이 있는 RC(저역 통과) 필터를 시뮬레이션합니다. enter image description here

R = 1e3; % 1kOm
C = 100e‑6; % 100uF
es = tf('s');
LP1 = 1 / (R*C*es + 1);
Ts = 0.1; % 100ms
sysd = c2d(LP1, Ts);

초기 값은 커패시터가 일부 전압(예: 5V)으로 충전되고 입력에 일부 전압(예: 10V)을 적용한다는 것을 의미합니다. 출력 전압/시간 플롯이 표시됩니다.

x0 = 5; % 5V
input = 10; % 10V
N = 100;
lsim(sysd, ones(1, N)*input, [], x0);

표시된 플롯은 0으로 시작합니다(초기 조건 없음). If i convert tf to ss:

lsim(ss(sysd), ones(1, N)*input, [], x0);

Than plot은 0이 아닌 값에서 시작하지만 초기 값으로 설정한 것은 5V가 아닙니다. state‑space output equation y = Cx + Du , the initial output is equal to C*x0 = 0.6321*5 = 3.16 which matches the result in your plot. Instead, you should set x0 = y0 / ss(sysd).C where y0 is the desired initial output. For y0 = 5, this means setting x0 = 7.91.

(by user3700538Alex)

참조 문서

  1. MATLAB Lsim initial value for RC filter doesnt work (CC BY‑SA 2.5/3.0/4.0)

#filtering #matlab #transfer-function






관련 질문

Active Admin에서 메서드(필드 아님)에 대한 필터를 작성하는 방법은 무엇입니까? (How to write filters for methods (not fields) in Active Admin?)

PHP를 사용하여 CSV 필터링 (Filtering CSV using PHP)

필터 정확한 검색 및 숫자 값과 일치 (filter Exact Search and matching with Numeric Value)

Spark는 어떻게 조인 + 필터를 실행합니까? 확장 가능합니까? (How does Spark execute a join + filter? Is it scalable?)

VB.Net에서 ListBox 요소 검색 (Search ListBox elements in VB.Net)

0이있는 특정 행을 기반으로 열을 제거하는 방법은 무엇입니까? (How to remove columns based on a specific row with 0?)

데이터 프레임이 여러 필드에서 변경되지 않는 값 찾기 및 제거 (Dataframe find & remove non changing values multiple fields)

Spotfire - 계산된 열의 값으로 테이블 필터링 (Spotfire - Filtering a Table by Values in a Calculated Column)

다른 집계 필드로 집계 차트 필터링 (Filtering an aggregated chart with another aggregation field)

matlab SVM은 NaN을 반환합니다. (matlab SVM returns NaN)

Google 시트 스크립트 - 고유한 셀 값 필터링 - 2D 배열 값을 단일 셀에 푸시 (Google sheet script - Filtering unique cell values - Pushing 2D array values into a single cell)

필터링할 항목이 특정 기준을 충족하는지 확인하면서 중첩된 배열 항목을 필터링하고 매핑하는 방법은 무엇입니까? (How to filter and map nested array items while checking whether the to be filtered items meet certain criteria?)







코멘트