You would have been slightly above average for parts of the 17th 18th and 19th centuries as well part of the 20th( in Europe). However in the Middle Ages people actually weren't much shorter than they are today ( Men at least). However that all depended on social class, location, and a variety of other factors
Is 5'4" really average?