c2d tustin's method calculation

13 visualizzazioni (ultimi 30 giorni)
Bernie Floeder
Bernie Floeder il 28 Lug 2017
Commentato: Swarooph il 31 Lug 2017
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 Commenti
Bernie Floeder
Bernie Floeder il 31 Lug 2017
Modificato: Bernie Floeder il 31 Lug 2017
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 il 31 Lug 2017
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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by