- #1
Dustinsfl
- 2,281
- 5
Code:
t = (0:0.0001:10);
for ki = [0.625, 1.125]
kp = 1.25;
H = tf([0, 0, 2*kp, 2*ki], [1, 3, 2 + 2*kp, 2*ki]);
step(H, t)
for i = [1, 2]
di = stepinfo(H)
end
hold on
end
legend('kp = 0.625', 'kp = 1.125');
I want the di loop to return d1 = all the data and d2 = all the data but this isn't happening. It is just returning di = data and di = data. How can I get Matlab to prescribed the loop index value for the i? I believe it sees di as one term not d and i.