15 lines
456 B
Matlab
15 lines
456 B
Matlab
close all; clc;
|
|
hold on;
|
|
% title("desiredSppeed = 100");
|
|
plot([0:0.01:2.67], StepResponse3SClean, "red");
|
|
stepResponse = step(Differential3S, [0:0.01:2.67]);
|
|
plot([0:0.01:2.67], stepResponse, "blue");
|
|
xlabel("Tempo(s)");
|
|
ylabel("Velocidade (m/s)")
|
|
ax = gca;
|
|
ax.YAxis(1).Limits = [0, 2];
|
|
ax.YAxis(1).Color = [0, 0, 0];
|
|
ax.XAxis.Limits = [0, 1];
|
|
legend({'Velocidade medida (m/s)', 'Velocidade simulada (m/s)'},'Location','southwest')
|
|
hold off;
|