Matlab function: c2d => what does sample time

4 次查看(过去 30 天)
Hi all.
I'm trying to convert a continues transfer function into a discrete. I know that the matlab function c2d can be used to this purpose. But what does the sample time? I mean, if I late choose to work with a signal with a different sample frequency, would I then need to convert the filter again, and why?
[sysd,G] = c2d(sys,Ts,method)

采纳的回答

Paulo Silva
Paulo Silva 2011-8-15
That's just the sampling time of the conversion of your transfer function from continuous to discrete (each method has it's own formula and the Ts is part of it, see the methods and formulas in books like Digital Control of Dynamic Systems), you can change the sampling time of the input signal without convert again but you must be careful with the sampling times, plot the continuous and discrete response to your input on the same axes and see if they are similar, low Ts values require more processing power but result in better responses, high Ts values require less processing power but don't give good results, you must make a compromise and choose the Ts that satisfy your project requirements.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Electrical Block Libraries 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by