Solving Problems in Dynamics and Vibrations Using MATLAB