the medullary canal is located within the center of a flat type bone
Medullary cavity The medullary cavity (medulla, innermost part) is the central cavity of bone shafts where red bone marrow and/or yellow bone marrow (adipose tissue) is stored; hence, the medullary cavity is also known as the marrow cavity. Located in the main shaft of a long bone (diaphysis) (consisting mostly of compact bone), the medullary cavity has walls composed of spongy bone (cancellous bone) and is lined with a thin, vascular membrane (endosteum). However, the medullary cavity is the area inside any bone (long, flat, etc.) that holds the bone marrow.[1]
Long bone The outer shell of the long bone is made of cortical bone also known as compact bone. This is covered by a membrane of connective tissue called the periosteum. Beneath the cortical bone layer is a layer of spongy cancellous bone. Inside this is the medullary cavity which has an inner core of bone marrow made up of yellow marrow in the adult and red marrow in the child..