RepairPal Certified shops can diagnose and repair your 2009 Toyota Matrix. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.
This sounds like an engine performance issue, either with fuel, spark or air in the proper proportion.
Diagnostic testing is needed to determine what is going on.