The MathWorks has leased 44,000 square feet of space at One Apple Hill in Natick and 22,032 square feet for expansion at Cochituate Place, 24 Prime Parkway in Natick.
MathWorks will occupy the entire fifth floor at Cochituate Place.
The MathWorks employs more than 1,400 people and develops software for engineers and scientists in industry, government and education worldwide.
Craig Johnston of R.W. Holmes Realty represented Atlantic Philadelphia Realty, owner of One Apple Hill, and LMF Cochituate Corp., owner of Cochituate Place. Garry Holmes represented The MathWorks.