Convert model from continuous to discrete time
Versione 1.0.2 (1,59 KB) da
Slawomir Grys
Simple discretization method requiring only basic Matlab syntax and matrix algebra. Easy to understand and apply.
It is a proposal for a new discretization method of a continuous-time linear model of sensor dynamics. It is assumed that sensor dynamics can be approximated by linear differential equation or transfer function. The searched coefficients of equivalent difference equation or discrete transfer function are obtained from the Taylor expansion of a sensor output signal and then on the solution of the linear set of equations. The method does not require the decomposition of the sensor transfer function for zeros and poles and also can be applied to the case of transfer function with zeros equal to zero. The inputs of the method are the coefficients of the differential equation and the coefficients of the difference equation are the outputs. The sample time is also required.
Its usefulness and properties can be compared with methods provided by 'c2d()' function. It is aimed at creating discrete models used in DSP, modeling, automation, and control. In the presented method it is limited to single input-singled output dynamics systems.
The theoretical derivations with an example of using it are available in an open-access research paper entitled:
or
Any feedback kindly welcome!
Cita come
Slawomir Grys (2026). Convert model from continuous to discrete time (https://it.mathworks.com/matlabcentral/fileexchange/135832-convert-model-from-continuous-to-discrete-time), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2023b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
