Centre-half Martin, 31, arrives following the expiry of his contract at Exeter City.
Both players will be considered for Sunday's trip to Ibrox as the club struggles with injuries.
Charlie Trafford will be out for three months after breaking his ankle, while David Templeton and Kyle Munro are missing. Ronan Hughes is a serious doubt and Jamie Hamilton has shin splints.
Need a VPN? Or seeking to switch? Then support Tribal Football by clicking here to sign up with our official partners NordVPN. Not only will you receive the best VPN experience, but also great discounts by signing up via Tribal Football. Thanks for your support!