The pair will feature in the first edition of the Miami Cup, along with 2003 French Open winner Juan Carlos Ferrero, fellow Spaniard Nicolas Almagro, Colombian Alejandro Falla and top- ranked American, John Isner.
Roddick announced his retirement at the US Open in August and is playing a series of farewell events.
The tournament will be held at Crandon Park, home to the annual Masters Series, Sony Ericsson Open and the stadium court will be transformed from its usual purple-and-green colour system to white with red lines, painted within blue surrounds.
Tennis is increasingly experimenting with new colour schemes and the Madrid Masters this year was played on blue clay - a move that was unpopular with some of the players.
The tournament will be held from November 30 through December 2.