Vary Parameter Values and Obtain Multiple Transfer Functions
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!