Malaysia’s economy grew 5.1 percent in 2024, as strong domestic demand and investment offset a downturn in the commodities sector, according to the Southeast Asian country’s central bank.