Vary Parameter Values and Obtain Multiple Transfer Functions

4 Ansichten (letzte 30 Tage)
Naman Bansal
Naman Bansal am 14 Jan. 2015
Bearbeitet: Azzi Abdelmalek am 14 Jan. 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.)

Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by