The Use of Matlab in Advanced Design of Bonded and Welded Joints