c2d tustin's method calculation

조회 수: 9 (최근 30일)
Bernie Floeder
Bernie Floeder 2017년 7월 28일
댓글: Swarooph 2017년 7월 31일
How does the continuous to discrete conversion work using tustin's method? More specifically what is the exact algorithm used for this replacement going from 's' to 'z'.
  댓글 수: 3
Bernie Floeder
Bernie Floeder 2017년 7월 31일
편집: Bernie Floeder 2017년 7월 31일
So me and 3 others have used that approximation to do a continuous to discrete conversion on a first order Low Pass Filter, yet when comparing the expected magnitudes with our computed by hand method vs. the c2d command we get different numbers (typically + or - 0.005) and I was hoping to see the function itself to see how our computations differed.
Swarooph
Swarooph 2017년 7월 31일
You can access code to c2d function but not sure if that is going to help. Do the following to see the location of the file. For me they are as follows:
>> which -all c2d
C:\Program Files\MATLAB\R2017a\toolbox\control\ctrlobsolete\c2d.m
C:\Program Files\MATLAB\R2017a\toolbox\shared\controllib\engine\@DynamicSystem\c2d.m % DynamicSystem method
Access the SECOND one here to see the code. Again, this might mean you will need to keep going deeper into the code. Not sure if that's the easiest way to address this concern.
If you showed your work by hand and an example MATLAB result it will help here to compare.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by