我是靠谱客的博主 整齐西装,这篇文章主要介绍Matlab 中step conv 函数使用                                     Matlab 中step 函数使用,现在分享给大家,希望可以做个参考。

                                     Matlab 中step 函数使用


                                                                          s+ 4             

对于一个闭环系统 传递函数是   G(s) = ------------------  : 

                                                                     s^2 + 2s + 8

现在要求其时域响应:

代码:

复制代码
1
2
3
num = [1, 4]; den = [1, 2, 8]; step(num, den)

运行结果:


这里再给出一个技巧使用  tf()   函数即可获得传递函数

例如:

复制代码
1
2
3
4
5
6
G= tf(num, den) G = s + 4 ------------- s^2 + 2 s + 8 Continuous-time transfer function.


下面是 conv 函数的使用                      6(s+5)

例如:                               G(s) = -----------------------------   conv主要就是用来进行多形式的乘法或者矩阵乘法

                                                     { (s^2 +3s +1)^2  }* (S +6)


复制代码
1
2
3
4
5
6
7
8
num = 6*[1, 5]; >> den= conv(conv([1,3,1],[1,3,1]), [1,6]); >> tf(num, den) ans = 6 s + 30 ----------------------------------------- s^5 + 12 s^4 + 47 s^3 + 72 s^2 + 37 s + 6 Continuous-time transfer function.


最后

以上就是整齐西装最近收集整理的关于Matlab 中step conv 函数使用                                     Matlab 中step 函数使用的全部内容,更多相关Matlab内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(96)

评论列表共有 0 条评论

立即
投稿
返回
顶部