Inverse kinematics for a 3DOF robot arm

I am working on a 3-DOF Robot arm. It is similar to an anthropomorphic robot arm. I need to compute the inverse kinematics of the arm in
Matlab. Is there anyone who has already computed an inverse kinematics for such a robot in Matlab? If not can anyone help me in developing such a program in Matlab? All three joints are spherical joints. I need
to find Theta1, Theta2 and Theta3.
Thanks Slinux
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file
Upload is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.