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