⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 amp115.m

📁 适合于数学建模的系统教程,介绍了系统模型及转换,系统时间响应和动态仿真等,并配合程序设计
💻 M
字号:
%Matlab Program 1-15
%Create transfer function model 
num=[2 5 1];
den=conv([1 1],conv([1 2],[1 3]));
sys_tf=tf(num,den)
disp('Model Cconvertion with tf2ss')
[A,B,C,D]=tf2ss(num,den);
sys_ss1=ss(A,B,C,D)
disp('Model Convertion with ss')
sys_ss2=ss(sys_tf)
disp('Model Canonical convertion with canon')
sys_ss3=canon(sys_tf,'model')
disp('Model Companion canonical convertion with canon')
sys_ss4=canon(sys_tf,'companion')
%Check step response of all models
step(sys_tf,sys_ss1,sys_ss2,sys_ss3,sys_ss4)
%step(sys_tf,sys_ss1)
%step(sys_tf,sys_ss4)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -