adding matlab and C