Matter is physical substances, and anything physical is matter. Whatever state an object is in, gas, liquid, solid, plasma, etc., it is matter. Matter also must take up space. Heat isn't an object and doesn't take up space so it isn't physical, meaning heat is not matter.
matter has mass and occupies volume,heat light and other forms of energy do not have measurable mass and cant be contained in volume matter. so heat is not matter