필터 지우기
필터 지우기

how do i use Finite Element Method with z-transform

조회 수: 2 (최근 30일)
peter
peter 2024년 3월 20일
답변: Neelanshu 2024년 4월 17일
I need to use digits and vpa to solve z funtion Frequency responses of the magnitude for filters

답변 (1개)

Neelanshu
Neelanshu 2024년 4월 17일
Hi peter,
From your question, I understand that you are looking to solve the given transfer function using the "vpa" function.
You can define z as a symbolic variable using "syms" function and then simplify the expression with the "simplify" function, as shown in the code snippet below:
syms z
H2 = vpa(0.216 + 0.0433*z^(-1) + 0.2201*z^(-2))/vpa(1+0.1075*z^(-1)+0.9796*z^(-2)) + ...
vpa(0.216 - 0.0433*z^(-1) + 0.2201*z^(-2))/vpa(1-0.1075*z^(-1)+0.9796*z^(-2)) + ...
vpa(0.216 + 0.0240*z^(-1) + 0.3036*z^(-2))/vpa(1+0.0865*z^(-1)+0.8929*z^(-2)) + ...
vpa(0.216 - 0.0240*z^(-1) + 0.3036*z^(-2))/vpa(1-0.0865*z^(-1)+0.8929*z^(-2));
HVpa = simplify(H2)
HVpa = 
You may refer to the following documentation to learn more about "syms" and "simplify" functions:
Hope this helps

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by