

step80=[0 0.002 0.02 0.054 0.104 0.166 0.243 0.339 0.455 0.583 0.734 0.911 1.099 1.315 1.56 1.821 2.121 2.431 2.786 3.164 3.57 3.992 4.477 4.946 5.492 6.066 6.65 7.292 7.813 8.424 9.042 9.631 10.354 11.085 11.936 12.813 13.604 14.517 15.493 16.339 17.342 ];

step90=[0 0.002 0.02 0.055 0.112 0.187 0.269 0.377 0.498 0.645 0.799 0.987 1.182 1.411 1.655 1.928 2.22 2.553 2.891 3.262 3.657 4.073 4.533 5.005 5.517 6.053 6.621 7.184 7.802 8.367 8.987 9.574 10.137 10.808 11.543 12.289 13.112 13.916 14.75 15.679 16.534 ];

step100=[0 0.001 0.018 0.057 0.109 0.18 0.27 0.382 0.507 0.663 0.831 1.016 1.214 1.421 1.672 1.931 2.234 2.536 2.85 3.21 3.569 3.972 4.403 4.827 5.302 5.818 6.309 6.845 7.418 8.02 8.608 9.185 9.78 10.347 11.038 11.716 12.446 13.162 13.915 14.724 15.517 ];

step110=[0 0.001 0.013 0.048 0.102 0.185 0.277 0.385 0.511 0.655 0.818 0.996 1.181 1.402 1.629 1.885 2.148 2.431 2.743 3.063 3.4 3.789 4.171 4.56 4.98 5.422 5.895 6.376 6.871 7.397 7.952 8.519 9.116 9.736 10.379 10.998 11.624 12.263 12.994 13.671 14.408 ];

step120=[0 0.001 0.009 0.038 0.092 0.153 0.231 0.331 0.445 0.576 0.725 0.893 1.082 1.286 1.499 1.734 1.965 2.225 2.496 2.782 3.08 3.408 3.738 4.082 4.439 4.811 5.223 5.644 6.062 6.512 6.979 7.472 7.97 8.47 9.02 9.688 10.239 10.875 11.483 12.086 12.675 ];

step140=[0 0.001 0.003 0.013 0.04 0.091 0.145 0.212 0.29 0.376 0.478 0.583 0.705 0.831 0.973 1.118 1.273 1.442 1.607 1.79 1.993 2.188 2.391 2.615 2.824 3.047 3.283 3.536 3.792 4.034 4.301 4.55 4.816 5.093 5.377 5.682 5.986 6.268 6.585 6.901 7.199 ];

step160=[0 0 0 0.001 0.004 0.01 0.018 0.032 0.052 0.083 0.121 0.16 0.199 0.244 0.296 0.347 0.401 0.463 0.531 0.595 0.663 0.739 0.814 0.894 0.982 1.064 1.144 1.231 1.305 1.402 1.473 1.565 1.622 1.761 1.854 1.932 2.014 2.126 2.225 2.257 2.371 ];

a=[0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 ];

plot(a,step80,'-',a,step90,'-',a,step100,'-',a,step110,'-',a,step120,'-',a,step140,'-',a,step160,'-');

legend('PD=80','PD=90','PD=100','PD=110','PD=120','PD=140','PD=160');
title('Step vs Amplitude for diferent phase differences');
xlabel('Amplitude (degrees)');
ylabel('Step (mm)');
axis([0 80]);
grid on;
