Italo, Regionale and Frecciarossa will get you to Matera at great prices. With over 1000 travel companies on Omio, you can find the best train times, prices and tickets for your trip.
Italo is an Italian high-speed train service operated by NTV (Nuovo Trasporto Viaggiatori). It operates on the Italian high-speed rail network, connecting major cities such as Rome, Milan, Turin, Florence, Bologna, Naples, and Salerno. Italo trains are modern and comfortable. Italo offers a range of ticket types, including Standard, Comfort, and Prima, with each offering different levels of onboard facilities. Standard tickets offer basic seating, while Comfort tickets offer more comfortable seating and access to the onboard bar. Prima tickets offer the most luxurious experience, with access to the onboard lounge and complimentary snacks and drinks. The most popular routes for Italo are Rome to Milan, Rome to Florence, and Milan to Turin.
Here are some other resources that might have the information you need