Linear equations system will restore impaired hand motion