<Tr> <Th> NeuroLex ID </Th> <Td> Motor cortex </Td> </Tr> <Tr> <Td_colspan="2"> Anatomical terms of neuroanatomy (edit on Wikidata) </Td> </Tr> <P> The motor cortex is the region of the cerebral cortex involved in the planning, control, and execution of voluntary movements . Classically the motor cortex is an area of the frontal lobe located in the posterior precentral gyrus immediately anterior to the central sulcus . </P> <P> The motor cortex can be divided into three areas: </P>

What is the primary function of the cortex