clear
clf
Kp = 0;
Kd = 0;
varKi = [0:0.2:10];
J = length(varKi);
for i = 1:J
    Ki = varKi(i);
    sim('Project_3_2018.mdl')
    N = length(RMSE);
    x(i) = Ki;
    y(i) = RMSE(N);
    M = i
end
plot(x,y), grid on, xlabel('Ki'), ylabel('RMSE [Volt]')