Vary Parameter Values and Obtain Multiple Transfer Functions
1 次查看(过去 30 天)
显示 更早的评论
I want to vary the value of a parameter to generate different transfer function. Here is the code:
clc;
clear all;
m = 1000;
b = 50;
vR = 375/18;
K = 1;
num = K/m;
den = [1, (K+b)/m];
transFun = tf(num, den);
[y,t,x] = step((75*5/18)*transFun);
step((75*5/18)*transFun)
In the above code, I want to change to values of K from 1:100 and get different transfer functions and different values accordingly. Also I want to plot different outputs in same plot. Can somebody help me how to do it? (Without using loops. I want to use the power of Matlab.)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!