Vary Parameter Values and Obtain Multiple Transfer Functions

1 visualización (últimos 30 días)
Naman Bansal
Naman Bansal el 14 de En. de 2015
Editada: Azzi Abdelmalek el 14 de En. de 2015
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.)

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by