what is the sampling frequency limit in 'c2d' cmd for a stable discrete system?
8 次查看(过去 30 天)
显示 更早的评论
I'm converting a continuous transfer function into a discrete one, using 'c2d' cmd.
But realised that different sampling frequency / discretized step time would effect system stability.
The transfer function I'm working on is a 9th order system.
dt = 1/7993 can offer a stable discrete system while dt = 1/7993/226 would result in an unstable system.
Therefore, I'm wondering what the upbound limit for sampling frequency for c2d is.
And is there any other way that I can get a discrete system using dt = 1/7993/226 or even higher sampling rate?
Thanks!
4 个评论
采纳的回答
Paul
2020-10-8
It appears to be a numerical issue when using c2d with you transfer function model. Try converting to state space first:
sys = tf(Numerator,Denomenator);
bode(c2d(ss(sys),dt1/226),c2d(ss(sys),dt1/226,'tustin'),c2d(ss(sys),dt1/226,'matched'),sys),grid
abs(pole(c2d(ss(sys),dt1/226,'tustin')))
ans =
9.9826e-01
9.9826e-01
9.9919e-01
9.9919e-01
9.9775e-01
9.9775e-01
9.9480e-01
9.9480e-01
9.9865e-01
A quick look under the hood showed that c2d converts the input tf to ss anyway and then converts back to tf. That conversion back is probably where the problem lies. Convert your model to ss and stay there. If you can, avoid the transfer function form altogether and build your model directly in ss form and stay in ss form.
You should add the bode plot of your discrete model using dt1 to those plots to see if you get what you need for that sample time.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Continuous Waveforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!