Create calculateK.m

% % % function to calculate the spring constant for a member