A neural-machine interface system is disclosed for providing control of a leg prosthesis. The system includes a plurality of input channels for receiving electromyographic signals from a subject, a feature vector formation unit for processing the electromyographic signals, and a pattern classification unit for identifying the intended movement of the subject's leg prosthesis.