Consider the stepped bar shown in Fig. 12.11 with the following data: $A_{1}=25 \times 10^{-4} \mathrm{~m}^{2}$, $A_{2}=16 \times 10^{-4} \mathrm{~m}^{2}, A_{3}=9 \times 10^{-4} \mathrm{~m}^{2}, E_{i}=2 \times 10^{11} \mathrm{~Pa}, i=1,2,3, \rho_{i}=7.8 \times 10^{3} \mathrm{~kg} / \mathrm{m}^{3}$ $i=1,2,3, l_{1}=3 \mathrm{~m}, l_{2}=2 \mathrm{~m}, l_{3}=1 \mathrm{~m} .$ Using MATLAB, find the axial displacements $u_{1}, u_{2},$ and $u_{3}$ under the load $p_{3}=500 \mathrm{~N}$.