Vary Parameter Values and Obtain Multiple Transfer Functions

4 views (last 30 days)
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.)

Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!